Skip to content

Commit

Permalink
Fix typos in RiemannClient/UdpClient
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Kingsbury committed May 16, 2012
1 parent 3268090 commit 8a40cb3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/aphyr/riemann/client/RiemannClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public Msg sendMaybeRecvMessage(Msg message) throws IOException {
if (udp.canSendMessage(message)) {
return udp.sendMaybeRecvMessage(message);
} else {
return tcp.sendMaybeRecvMessage(e);
return tcp.sendMaybeRecvMessage(message);
}
} catch (MsgTooLargeException e) {
return tcp.sendMaybeRecvMessage(message);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public RiemannUDPClient(InetSocketAddress server) {

// Returns true if the message is small enough to be sent.
public boolean canSendMessage(Msg message) {
return(message.getSerializedSize() <= max_size);
return(message.getSerializedSize() <= MAX_SIZE);
}

@Override
Expand Down

0 comments on commit 8a40cb3

Please sign in to comment.