libnetwork/datastore: cache.get(): remove unused "key" argument

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2023-07-02 18:39:13 +02:00
parent 824abbf8d9
commit 2409a36e29
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C
2 changed files with 2 additions and 2 deletions

View file

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

View file

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