make checkin intervals configurable and remove extra nats conn

This commit is contained in:
wh1te909 2022-11-24 23:45:59 -08:00
parent 9ccb95449e
commit f1db416d56
4 changed files with 79 additions and 24 deletions

View file

@ -322,3 +322,12 @@ func createTmpFile() (*os.File, error) {
}
return f, nil
}
func stringInSlice(a string, list []string) bool {
for _, b := range list {
if b == a {
return true
}
}
return false
}