Skip to content

Commit

Permalink
remove error on heartbeat and greetserver
Browse files Browse the repository at this point in the history
  • Loading branch information
sgueissa committed May 15, 2024
1 parent 68b27dd commit dbdc717
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion be1-go/internal/popserver/handler/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func handleQuery(socket socket.Socket, msg []byte) *answer.Error {
errAnswer = answer.NewInvalidResourceError("unexpected method: '%s'", queryBase.Method)
}

if errAnswer != nil {
if errAnswer != nil && queryBase.Method != query.MethodGreetServer && queryBase.Method != query.MethodHeartbeat {
errAnswer = errAnswer.Wrap("handleQuery")
socket.SendError(id, errAnswer)
return errAnswer
Expand Down

0 comments on commit dbdc717

Please sign in to comment.