Skip to content

Commit

Permalink
fixed getPeerConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
supertick committed Oct 24, 2023
1 parent cd9806d commit 0dfa3d0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/org/myrobotlab/framework/Service.java
Original file line number Diff line number Diff line change
Expand Up @@ -1408,6 +1408,12 @@ public T getConfig() {
return config;
}

public <P extends ServiceConfig> P getPeerConfig(String peerKey) {
return getPeerConfig(peerKey, new StaticType<>() {
});
}


/**
* Get a service's peer's configuration. This method is used to get the
* configuration of a peer service regarless if it is currently running or
Expand Down

0 comments on commit 0dfa3d0

Please sign in to comment.