mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-16 15:48:46 +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 {
|
type KvServer struct {
|
||||||
remote.UnimplementedKVServer // must be embedded to have forward compatible implementations.
|
remote.UnimplementedKVServer // must be embedded to have forward compatible implementations.
|
||||||
|
|
||||||
kv kv.RwDB
|
kv kv.RoDB
|
||||||
stateChangeStreams *StateChangePubSub
|
stateChangeStreams *StateChangePubSub
|
||||||
ctx context.Context
|
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}
|
return &KvServer{kv: kv, stateChangeStreams: newStateChangeStreams(), ctx: ctx}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user