about summary refs log tree commit diff
path: root/tools/nixery/cmd/server
diff options
context:
space:
mode:
Diffstat (limited to 'tools/nixery/cmd/server')
-rw-r--r--tools/nixery/cmd/server/main.go10
1 files changed, 6 insertions, 4 deletions
diff --git a/tools/nixery/cmd/server/main.go b/tools/nixery/cmd/server/main.go
index 8fe1679cfad8..24aec6391c45 100644
--- a/tools/nixery/cmd/server/main.go
+++ b/tools/nixery/cmd/server/main.go
@@ -30,6 +30,7 @@ import (
 	"github.com/google/nixery/logs"
 	mf "github.com/google/nixery/manifest"
 	"github.com/google/nixery/storage"
+	"github.com/im7mortal/kmutex"
 	log "github.com/sirupsen/logrus"
 )
 
@@ -257,10 +258,11 @@ func main() {
 	}
 
 	state := builder.State{
-		Cache:   &cache,
-		Cfg:     cfg,
-		Pop:     pop,
-		Storage: s,
+		Cache:       &cache,
+		Cfg:         cfg,
+		Pop:         pop,
+		Storage:     s,
+		UploadMutex: kmutex.New(),
 	}
 
 	log.WithFields(log.Fields{