Skip to content

Commit

Permalink
Validate Peer: Fix check condition (#1121)
Browse files Browse the repository at this point in the history
Return error on invalid PG version instead of a valid one
  • Loading branch information
Amogh-Bharadwaj authored Jan 22, 2024
1 parent 7783fa0 commit a7cbc8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flow/cmd/validate_peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func (h *FlowRequestHandler) ValidatePeer(
return nil, err
}

if isValid {
if !isValid {
return &protos.ValidatePeerResponse{
Status: protos.ValidatePeerStatus_INVALID,
Message: fmt.Sprintf("%s peer %s must be of version 12 or above. Current version: %d",
Expand Down

0 comments on commit a7cbc8f

Please sign in to comment.