Skip to content
Snippets Groups Projects
Commit 7cd4344a authored by Richard T. Carback III's avatar Richard T. Carback III
Browse files

Don't check if network is healthy before trying to add authentication channel

parent 81858c72
Branches
Tags
No related merge requests found
...@@ -28,11 +28,6 @@ func (c *Client) RequestAuthenticatedChannel(recipient, me contact.Contact, ...@@ -28,11 +28,6 @@ func (c *Client) RequestAuthenticatedChannel(recipient, me contact.Contact,
message string) error { message string) error {
jww.INFO.Printf("RequestAuthenticatedChannel(%s)", recipient.ID) jww.INFO.Printf("RequestAuthenticatedChannel(%s)", recipient.ID)
if !c.network.GetHealthTracker().IsHealthy() {
return errors.New("Cannot request authenticated channel " +
"creation when the network is not healthy")
}
return auth.RequestAuth(recipient, me, message, c.rng.GetStream(), return auth.RequestAuth(recipient, me, message, c.rng.GetStream(),
c.storage, c.network) c.storage, c.network)
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment