Skip to content

Commit

Permalink
now private handler messages are used to update machine client state.
Browse files Browse the repository at this point in the history
  • Loading branch information
pkohout committed Sep 22, 2023
1 parent 7aab81f commit 717bb06
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ plugins {

group = 'io.github.robocup-logistics'
archivesBaseName = "java-sdk"
version = '0.1.17.11'
version = '0.1.18'

description = ""

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/rcll/refbox/RefboxClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ public RefboxClient(@NonNull RefboxConnectionConfig connectionConfig,
this.robotClient = Optional.empty();
this.explorationClient = Optional.empty();
this.orderService = Optional.empty();
Consumer<MachineInfoProtos.MachineInfo> oldMachineInfoCallback = publicHandler.getMachineInfoCallback();
publicHandler.setMachineInfoCallback(machineInfo -> {
Consumer<MachineInfoProtos.MachineInfo> oldMachineInfoCallback = privateHandler.getMachineInfoCallback();
privateHandler.setMachineInfoCallback(machineInfo -> {
machineClient.ifPresent(m -> m.update(machineInfo));
oldMachineInfoCallback.accept(machineInfo);
inProduction = true;
Expand Down

0 comments on commit 717bb06

Please sign in to comment.