Browse Source

added nats watchdog

Tobias von Dewitz 6 years ago
parent
commit
eb4a51ab88
1 changed files with 3 additions and 0 deletions
  1. 3 0
      main.go

+ 3 - 0
main.go

@@ -152,11 +152,14 @@ func main() {
 
 	natsIsUnavailable = true
 	natsClosedChan = make(chan bool, 10000)
+
 	err := connectToNATS()
 	if err != nil {
 		log.Fatal(err)
 	}
 
+	go natsWatchdog(natsClosedChan)
+
 	// What should I do?
 	if config.RequestsFile != "" {
 		replayFile()