mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-28 14:47:16 +00:00
remotedb server: ro db (#313)
This commit is contained in:
parent
441a4c3cde
commit
7aec036bdd
@ -44,12 +44,12 @@ var KvServiceAPIVersion = &types.VersionReply{Major: 5, Minor: 1, Patch: 0}
|
||||
type KvServer struct {
|
||||
remote.UnimplementedKVServer // must be embedded to have forward compatible implementations.
|
||||
|
||||
kv kv.RwDB
|
||||
kv kv.RoDB
|
||||
stateChangeStreams *StateChangePubSub
|
||||
ctx context.Context
|
||||
}
|
||||
|
||||
func NewKvServer(ctx context.Context, kv kv.RwDB) *KvServer {
|
||||
func NewKvServer(ctx context.Context, kv kv.RoDB) *KvServer {
|
||||
return &KvServer{kv: kv, stateChangeStreams: newStateChangeStreams(), ctx: ctx}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user