Skip to content

Commit b971ce4

Browse files
committed
Correcting a timing of the ticker
1 parent 3eedd84 commit b971ce4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cns/restserver/internalapi.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ func RegisterNode(httpc *http.Client, httpRestService cns.HTTPService, dncEP, in
289289

290290
nodeRegisterRequest.NmAgentSupportedApis = supportedApis
291291

292-
nodeRegisterTicker := time.NewTicker(time.Duration(time.Second) * common.FiveSeconds)
292+
nodeRegisterTicker := time.NewTicker(common.FiveSeconds)
293293
responseChan := make(chan error)
294294

295295
for {

0 commit comments

Comments
 (0)