mirror of
https://github.com/v0l/zap-stream-core.git
synced 2025-06-18 04:18:50 +00:00
fix: match endpoint
This commit is contained in:
@ -532,7 +532,7 @@ impl ZapStreamOverseer {
|
|||||||
let default = endpoints.iter().max_by_key(|e| e.cost);
|
let default = endpoints.iter().max_by_key(|e| e.cost);
|
||||||
Ok(endpoints
|
Ok(endpoints
|
||||||
.iter()
|
.iter()
|
||||||
.find(|e| e.name == connection.endpoint)
|
.find(|e| e.name.eq_ignore_ascii_case(connection.endpoint))
|
||||||
.or(default)
|
.or(default)
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.clone())
|
.clone())
|
||||||
|
Reference in New Issue
Block a user