Skip to content

Commit

Permalink
TEMP - rootstore size
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewSisley committed Oct 2, 2024
1 parent d609bb9 commit 8037f91
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/integration/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -1956,7 +1956,22 @@ func executeRequest(
ctx := db.SetContextTxn(s.ctx, txn)
identity := getIdentity(s, nodeID, action.Identity)
ctx = db.SetContextIdentity(ctx, identity)
/*
r, e := node.Rootstore().Query(ctx, query.Query{
Prefix: "/db/blocks",
})
if e != nil {
panic(e.Error())
}
t := 0
rr, h := r.NextSync()
for h {
t += rr.Size
rr, h = r.NextSync()
}
panic(fmt.Sprint(t))
*/
var options []client.RequestOption
if action.OperationName.HasValue() {
options = append(options, client.WithOperationName(action.OperationName.Value()))
Expand Down

0 comments on commit 8037f91

Please sign in to comment.