huskies: merge 858
This commit is contained in:
@@ -48,6 +48,7 @@ pub struct AgentPool {
|
||||
}
|
||||
|
||||
impl AgentPool {
|
||||
/// Create a new agent pool bound to the given HTTP port and event channel.
|
||||
pub fn new(port: u16, watcher_tx: broadcast::Sender<WatcherEvent>) -> Self {
|
||||
let pool = Self {
|
||||
agents: Arc::new(Mutex::new(HashMap::new())),
|
||||
@@ -98,6 +99,7 @@ impl AgentPool {
|
||||
pool
|
||||
}
|
||||
|
||||
/// Return the HTTP port this pool's agents connect to.
|
||||
pub fn port(&self) -> u16 {
|
||||
self.port
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user