-
Notifications
You must be signed in to change notification settings - Fork 117
feat(swap): cancel maker order for offline coins #2357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Changes from 27 commits
eac9f81
3618ddd
6a48ca2
d2b8cff
98f53cc
ca7190f
6420d94
55e7f7a
c4e458e
5818720
d58d2c0
029c457
2e33e90
b7ef6c3
e18f60b
44ce1a9
94c5111
5997e23
eedc9b9
e598eb2
bfa7720
fb2b4fe
be73fa3
37ae831
65296a6
928520e
ba36f6c
5ef3858
f49e339
6287556
0fa2ba8
f505257
18e3c87
a4bea76
c18e4af
9306a25
7c7f370
d75abc7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -312,6 +312,17 @@ impl ConnectionManager { | |
| self.write_connections().remove(server_address); | ||
| Ok(connection) | ||
| } | ||
|
|
||
| /// Checks if there are no live server connections available. | ||
| pub fn is_completely_offline(&self) -> bool { | ||
| for server in self.read_maintained_connections().iter() { | ||
|
||
| if self.get_connection(server.1).is_some() { | ||
|
||
| return false; | ||
| }; | ||
| } | ||
|
|
||
| true | ||
| } | ||
| } | ||
|
|
||
| // Background tasks. | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be annotated/cfg-ed for tests only. this breaks
cargo check.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done thanks.