Crdt: fix OfflineState comment
This commit is contained in:
parent
78f160aeb8
commit
0671159bee
|
@ -468,10 +468,9 @@ func (css *Consensus) Leader(ctx context.Context) (peer.ID, error) {
|
||||||
return "", ErrNoLeader
|
return "", ErrNoLeader
|
||||||
}
|
}
|
||||||
|
|
||||||
// OfflineState returns an offline, read-only batching state using the given
|
// OfflineState returns an offline, batching state using the given
|
||||||
// datastore. Any writes to this state are processed through the given
|
// datastore. This allows to inspect and modify the shared state in offline
|
||||||
// ipfs connector (the state is offline as it does not require a
|
// mode.
|
||||||
// running cluster peer).
|
|
||||||
func OfflineState(cfg *Config, store ds.Datastore) (state.BatchingState, error) {
|
func OfflineState(cfg *Config, store ds.Datastore) (state.BatchingState, error) {
|
||||||
batching, ok := store.(ds.Batching)
|
batching, ok := store.(ds.Batching)
|
||||||
if !ok {
|
if !ok {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user