From 6b7e19ff42b8760a8992ed1b997903eccdecbbbd Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Wed, 10 Aug 2022 10:01:00 +0200 Subject: [PATCH] libcontainerd/supervisor: remove unused RWMutex This RWMutex was added in 9c4570a958df42d1ad19364b1a8da55b891d850a, and used in the `remote.Client()` method. Commit dd2e19ebd58cd8896d79b4b8db61144b93717b33 split the code for client and daemon, but did not remove the mutex. Signed-off-by: Sebastiaan van Stijn --- libcontainerd/supervisor/remote_daemon.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/libcontainerd/supervisor/remote_daemon.go b/libcontainerd/supervisor/remote_daemon.go index 7de2174809..4461ad94ac 100644 --- a/libcontainerd/supervisor/remote_daemon.go +++ b/libcontainerd/supervisor/remote_daemon.go @@ -9,7 +9,6 @@ import ( "path/filepath" "strconv" "strings" - "sync" "time" "github.com/containerd/containerd" @@ -31,7 +30,6 @@ const ( ) type remote struct { - sync.RWMutex config.Config daemonPid int