From: Gabe Rosenhouse Date: Wed, 30 Aug 2017 03:26:37 +0000 (-0700) Subject: host-local disk backend store uses FileLock by reference X-Git-Url: https://git.halfball.org/?a=commitdiff_plain;h=2f957864eaf50b4e32dc4e5a41cd3f26dd3994f7;p=plugins.git host-local disk backend store uses FileLock by reference - this change fixes go vet warnings for the package --- diff --git a/plugins/ipam/host-local/backend/disk/backend.go b/plugins/ipam/host-local/backend/disk/backend.go index 82c3a8a..0f5a5f5 100644 --- a/plugins/ipam/host-local/backend/disk/backend.go +++ b/plugins/ipam/host-local/backend/disk/backend.go @@ -31,7 +31,7 @@ var defaultDataDir = "/var/lib/cni/networks" // Store is a simple disk-backed store that creates one file per IP // address in a given directory. The contents of the file are the container ID. type Store struct { - FileLock + *FileLock dataDir string } @@ -51,7 +51,7 @@ func New(network, dataDir string) (*Store, error) { if err != nil { return nil, err } - return &Store{*lk, dir}, nil + return &Store{lk, dir}, nil } func (s *Store) Reserve(id string, ip net.IP, rangeID string) (bool, error) {