feat(tools/benchmark): introduce benchmark module (#22778)
This commit is contained in:
@@ -96,6 +96,7 @@ func init() {
|
||||
codec.ProvideProtoCodec,
|
||||
codec.ProvideAddressCodec,
|
||||
ProvideKVStoreKey,
|
||||
ProvideKVStoreFactory,
|
||||
ProvideTransientStoreKey,
|
||||
ProvideMemoryStoreKey,
|
||||
ProvideGenesisTxHandler,
|
||||
@@ -296,3 +297,11 @@ func ProvideTransientStoreService(
|
||||
func ProvideCometService() comet.Service {
|
||||
return NewContextAwareCometInfoService()
|
||||
}
|
||||
|
||||
func ProvideKVStoreFactory(app *AppBuilder) store.KVStoreServiceFactory {
|
||||
return func(key []byte) store.KVStoreService {
|
||||
sk := storetypes.NewKVStoreKey(string(key))
|
||||
registerStoreKey(app, sk)
|
||||
return kvStoreService{key: sk}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user