Browse Source

removed superfluous brackets

pull/3370/head
Juan Leni 6 years ago
parent
commit
9a2fa29046
No known key found for this signature in database GPG Key ID: 23F1452155140419
1 changed files with 7 additions and 11 deletions
  1. +7
    -11
      privval/signer_listener_endpoint.go

+ 7
- 11
privval/signer_listener_endpoint.go View File

@ -265,6 +265,7 @@ func (sl *SignerListenerEndpoint) serviceLoop() {
case <-sl.connectCh:
{
sl.Logger.Info("Listening for new connection")
conn, err := sl.acceptNewConnection()
if err == nil {
sl.Logger.Info("Connected")
@ -272,14 +273,11 @@ func (sl *SignerListenerEndpoint) serviceLoop() {
// We have a good connection, wait for someone that needs one or cancellation
select {
case sl.connectedCh <- conn:
{
sl.Logger.Debug("SignerListenerEndpoint: connection relayed")
}
sl.Logger.Debug("SignerListenerEndpoint: connection relayed")
break
case <-sl.stopCh:
{
sl.Logger.Debug("SignerListenerEndpoint::serviceLoop Stop")
return
}
sl.Logger.Debug("SignerListenerEndpoint::serviceLoop Stop")
return
}
}
@ -289,10 +287,8 @@ func (sl *SignerListenerEndpoint) serviceLoop() {
}
}
case <-sl.stopCh:
{
sl.Logger.Debug("SignerListenerEndpoint::serviceLoop Stop")
return
}
sl.Logger.Debug("SignerListenerEndpoint::serviceLoop Stop")
return
}
}
}

Loading…
Cancel
Save