log response
All checks were successful
Build and Publish / BuildAndDeployAmd64 (push) Successful in 27s
Build and Publish / BuildAndDeploy (push) Successful in 2m19s

This commit is contained in:
matst80
2024-11-13 22:05:18 +01:00
parent abf561c3fe
commit 2539a05b71
2 changed files with 2 additions and 5 deletions

View File

@@ -62,7 +62,7 @@ var (
)
var (
PongResponse = MakeFrameWithPayload(Pong, 200, nil)
PongResponse = MakeFrameWithPayload(Pong, 200, []byte{})
)
func (p *SyncedPool) PongHandler(data *FrameWithPayload, resultChan chan<- FrameWithPayload) error {
@@ -373,7 +373,7 @@ func (p *SyncedPool) AddRemote(host string) error {
client := NewConnection(fmt.Sprintf("%s:1338", host))
response, err := client.Call(Ping, nil)
if err != nil || response.StatusCode != 200 || response.Type != Pong {
log.Printf("Error connecting to remote %s: %v\n", host, err)
log.Printf("Error connecting to remote %s: %v\n", host, response)
return err
}