This repository was archived by the owner on Aug 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
[for consideration] Move the notion of a 'online' block service to 'hasExchange' #61
Comments
//cc @dignifiedquire |
I forgot to respond in the PR sorry. I generally like the idea, the online and offline names are pretty confusing |
Simply renaming |
@pgte agreed. What about the 'disable', rmExchange? |
That, or |
If the goal is to support multiple exchanges I wonder if it wouldn't be better to expose an api like this .exchanges.ls()
// => returns an array of existing exchanges
.exchanges.add(newExchange)
// => adds a new exchange to the list
.exchanges.rm(existingExchange)
// => removes the given exchange (might want to this by name or id or something like that
.exchanges.clear()
// => removes all exchanges
.exchanges.has()
// => alias for .ls().length > 0 |
I'm good either way. I agree that if we get more than one exchange it will be good to have such an API, but at the same time, we don't have any other nor plans for it. Right now what is important to get fixed is the misleading method name. |
Done with #67 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
ref:
Once we start having more exchanges, it will make it more obvious why this is interesting.
The text was updated successfully, but these errors were encountered: