1
0
Fork 0
mirror of https://github.com/postmannen/ctrl.git synced 2025-03-05 06:46:48 +00:00

removed pub sleep which kept allocs for too long.

This commit is contained in:
postmannen 2022-06-22 05:31:40 +02:00
parent a04e96706a
commit bcc5eb35b6

View file

@ -307,7 +307,7 @@ func (p process) messageDeliverNats(natsMsgPayload []byte, natsMsgHeader nats.He
// sendErrorLogMessage(p.toRingbufferCh, node(p.node), er) // sendErrorLogMessage(p.toRingbufferCh, node(p.node), er)
log.Printf("%v, waiting %ds before retrying\n", er, subscribeSyncTimer) log.Printf("%v, waiting %ds before retrying\n", er, subscribeSyncTimer)
time.Sleep(time.Second * subscribeSyncTimer) //time.Sleep(time.Second * subscribeSyncTimer)
// subReply.Unsubscribe() // subReply.Unsubscribe()
retryAttempts++ retryAttempts++