Browse Source

daemon: un-export ModifyRootKeyLimit()

it's only used internally, so no need to export

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 4 years ago
parent
commit
34b854f965
3 changed files with 5 additions and 5 deletions
  1. 1 1
      daemon/daemon.go
  2. 2 2
      daemon/keys.go
  3. 2 2
      daemon/keys_unsupported.go

+ 1 - 1
daemon/daemon.go

@@ -751,7 +751,7 @@ func NewDaemon(ctx context.Context, config *config.Config, pluginStore *plugin.S
 	}
 
 	// Ensure that we have a correct root key limit for launching containers.
-	if err := ModifyRootKeyLimit(); err != nil {
+	if err := modifyRootKeyLimit(); err != nil {
 		logrus.Warnf("unable to modify root key limit, number of containers could be limited by this quota: %v", err)
 	}
 

+ 2 - 2
daemon/keys.go

@@ -18,10 +18,10 @@ const (
 	rootKeyByteMultiplier = 25
 )
 
-// ModifyRootKeyLimit checks to see if the root key limit is set to
+// modifyRootKeyLimit checks to see if the root key limit is set to
 // at least 1000000 and changes it to that limit along with the maxbytes
 // allocated to the keys at a 25 to 1 multiplier.
-func ModifyRootKeyLimit() error {
+func modifyRootKeyLimit() error {
 	value, err := readRootKeyLimit(rootKeyFile)
 	if err != nil {
 		return err

+ 2 - 2
daemon/keys_unsupported.go

@@ -2,7 +2,7 @@
 
 package daemon // import "github.com/docker/docker/daemon"
 
-// ModifyRootKeyLimit is a noop on unsupported platforms.
-func ModifyRootKeyLimit() error {
+// modifyRootKeyLimit is a noop on unsupported platforms.
+func modifyRootKeyLimit() error {
 	return nil
 }