浏览代码

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 <github@gone.nl>
Sebastiaan van Stijn 2 年之前
父节点
当前提交
6b7e19ff42
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0 2
      libcontainerd/supervisor/remote_daemon.go

+ 0 - 2
libcontainerd/supervisor/remote_daemon.go

@@ -9,7 +9,6 @@ import (
 	"path/filepath"
 	"path/filepath"
 	"strconv"
 	"strconv"
 	"strings"
 	"strings"
-	"sync"
 	"time"
 	"time"
 
 
 	"github.com/containerd/containerd"
 	"github.com/containerd/containerd"
@@ -31,7 +30,6 @@ const (
 )
 )
 
 
 type remote struct {
 type remote struct {
-	sync.RWMutex
 	config.Config
 	config.Config
 
 
 	daemonPid int
 	daemonPid int