libnetwork/datastore: cache.get(): remove unused "key" argument
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
824abbf8d9
commit
2409a36e29
2 changed files with 2 additions and 2 deletions
|
@ -138,7 +138,7 @@ func (c *cache) del(kvObject KVObject, atomic bool) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
func (c *cache) get(key string, kvObject KVObject) error {
|
||||
func (c *cache) get(kvObject KVObject) error {
|
||||
kmap, err := c.kmap(kvObject)
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
|
@ -430,7 +430,7 @@ func (ds *datastore) GetObject(key string, o KVObject) error {
|
|||
defer ds.Unlock()
|
||||
|
||||
if ds.cache != nil {
|
||||
return ds.cache.get(key, o)
|
||||
return ds.cache.get(o)
|
||||
}
|
||||
|
||||
kvPair, err := ds.store.Get(key)
|
||||
|
|
Loading…
Add table
Reference in a new issue