Update fluffy-tools.

This commit is contained in:
bhartnett 2024-11-01 16:20:11 +08:00
parent 3a93b24a3e
commit 29002618a6
No known key found for this signature in database
GPG Key ID: 076F2830DA6BD535
2 changed files with 6 additions and 1 deletions

View File

@ -108,7 +108,11 @@ proc cmdBench(conf: DbConf) =
for key in keys:
withTimer(timers[tDbGet]):
let _ = db.get(key)
var val = Opt.none(seq[byte])
proc onData(data: openArray[byte]) =
val = Opt.some(@data)
let _ = db.get(key, onData)
for key in keys:
withTimer(timers[tDbContains]):

View File

@ -255,6 +255,7 @@ proc run(config: PortalCliConf) =
testContentIdHandler,
createGetHandler(db),
createStoreHandler(db, defaultRadiusConfig),
createContainsHandler(db),
createRadiusHandler(db),
stream,
bootstrapRecords = bootstrapRecords,