-
Notifications
You must be signed in to change notification settings - Fork 18
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
add ability to instance socket connection in order to test multiple connections #127
base: main
Are you sure you want to change the base?
Conversation
ce07fd8
to
d9a35f4
Compare
|
||
@doc """ | ||
Send an update status to web | ||
""" | ||
@spec send_update_status(String.t() | atom()) :: :ok | ||
defdelegate send_update_status(status), to: Socket | ||
def send_update_status(status), do: Socket.send_update_status(Socket, status) |
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.
def send_update_status(status), do: Socket.send_update_status(Socket, status) | |
defdelegate send_update_status(socket \\ Socket, status), to: Socket |
I'm pretty sure you can delegate the default and it would work with dialyzer as well
@spec reconnect() :: :ok | ||
defdelegate reconnect(), to: Socket | ||
@spec reconnect_socket() :: :ok | ||
def reconnect_socket(), do: Socket.reconnect_socket(Socket) |
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.
Is there a specific reason for this change? This could be considered breaking since reconnect()
has been around a while
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.
yeah use Slipstream
imports a reconnect/2
function. We could make NervesHubLink.reconnect
stay the same while the socket module remains the new function.
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.
I don't think we need a load test file. This is basic enough that those testing can implement what they need and we can skip adding a file thats not used in production
…onnections Signed-off-by: Connor Rigby <[email protected]>
No description provided.