refactor(watchdog): remove tcp socket connection and add local unix sock connection
This commit is contained in:
@@ -76,11 +76,10 @@ func main() {
|
||||
if err != nil {
|
||||
postLog.Error(fmt.Sprintf("Unable to initialize Watchdog: %s", err))
|
||||
} else {
|
||||
if !watchdog.Connect("127.0.0.1", global.CurrentConfig.Watchdog.Port) {
|
||||
postLog.Error(fmt.Sprintf("Failed to connect to Watchdog at %s:%d", "127.0.0.1", global.CurrentConfig.Watchdog.Port))
|
||||
if !watchdog.Connect() {
|
||||
postLog.Error("Failed to connect to Watchdog")
|
||||
} else {
|
||||
postLog.Info(fmt.Sprintf("Connected to Watchdog at %s:%d", "127.0.0.1", global.CurrentConfig.Watchdog.Port))
|
||||
global.Is.WatchdogConnected = true
|
||||
postLog.Info("Connected to Watchdog successfully")
|
||||
|
||||
go func() {
|
||||
if err := watchdog.StartKeepAlive(); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user