diff --git a/goku-node/cmd/heartbeat.go b/goku-node/cmd/heartbeat.go index 8e55a5500a48a0af3846af3644ee39cff3ddcac5..f4a9b6eab731e82508306af182059e624af1f790 100644 --- a/goku-node/cmd/heartbeat.go +++ b/goku-node/cmd/heartbeat.go @@ -39,11 +39,16 @@ func Heartbeat(port int) { } func sendHeartBeat(port int) { - addr := node_common.GetAdminURL(fmt.Sprintf("node/heartbeat?port=%d", port)) - _, err := http.Get(addr) + r, err := http.Get(addr) if err != nil { log.Warn("fail to send heartbeat:", err) + return + } + e:=r.Body.Close() + if e!=nil{ + log.Warn("close response error:", err) + return } }