Skip to content

Commit

Permalink
iluwatar#2898 Fixed onMessage method
Browse files Browse the repository at this point in the history
  • Loading branch information
Ehspresso committed Apr 17, 2024
1 parent 0844618 commit f4ebf9c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public void onMessage(Message message) {

try {
BytesMessage bMessage = (BytesMessage) message;
double newRate = ((BytesMessage) message).readDouble();
double newRate = ((BytesMessage) bMessage).readDouble();

if (currentRate - newRate >= 1)
System.out.println("New Rate is " + newRate + " - Consider refinancing");
Expand Down

0 comments on commit f4ebf9c

Please sign in to comment.