Skip to content

Commit c0e2ce1

Browse files
committed
init mutex
1 parent 0471e25 commit c0e2ce1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/envd/internal/api/store.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ type API struct {
2121
}
2222

2323
func New(l *zerolog.Logger, envVars *utils.Map[string, string], mmdsChan chan *host.MMDSOpts, isNotFC bool) *API {
24-
return &API{logger: l, envVars: envVars, mmdsChan: mmdsChan, isNotFC: isNotFC}
24+
return &API{logger: l, envVars: envVars, mmdsChan: mmdsChan, isNotFC: isNotFC, hyperloopLock: &sync.Mutex{}}
2525
}
2626

2727
func (a *API) GetHealth(w http.ResponseWriter, r *http.Request) {

0 commit comments

Comments
 (0)