Skip to content

Commit

Permalink
Add method
Browse files Browse the repository at this point in the history
  • Loading branch information
iambriccardo committed Aug 26, 2024
1 parent c290f12 commit b04d5d4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions relay-config/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1862,6 +1862,11 @@ impl Config {
self.values.relay.mode
}

/// Returns the relay environment.
pub fn relay_environment(&self) -> RelayEnvironment {
self.values.relay.environment
}

/// Returns the upstream target as descriptor.
pub fn upstream_descriptor(&self) -> &UpstreamDescriptor<'_> {
&self.values.relay.upstream
Expand Down

0 comments on commit b04d5d4

Please sign in to comment.