Crdt: fix OfflineState comment

This commit is contained in:
Hector Sanjuan 2019-12-16 13:21:51 +01:00
parent 78f160aeb8
commit 0671159bee

View File

@ -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 {