libnetwork/datastore: rename var that collided with import

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2022-11-01 12:48:24 +01:00
parent ff447f4fd5
commit 87ca9490b0
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

View file

@ -222,12 +222,12 @@ func newClient(scope string, kv string, addr string, config *store.Config, cache
}
}
store, err := libkv.NewStore(store.Backend(kv), addrs, config)
s, err := libkv.NewStore(store.Backend(kv), addrs, config)
if err != nil {
return nil, err
}
ds := &datastore{scope: scope, store: store, active: true, watchCh: make(chan struct{}), sequential: sequential}
ds := &datastore{scope: scope, store: s, active: true, watchCh: make(chan struct{}), sequential: sequential}
if cached {
ds.cache = newCache(ds)
}