kvdb+watchtower: fix unreachable code

This commit is contained in:
undefinedor
2024-03-23 19:02:23 +08:00
parent 1422df27b2
commit 028959f5a0
3 changed files with 3 additions and 7 deletions

View File

@@ -333,9 +333,6 @@ tryNextCandidate:
goto retryWithBackoff
}
// Success.
return
}
}
@@ -393,8 +390,6 @@ func (n *sessionNegotiator) createSession(tower *Tower, keyIndex uint32) error {
return nil
}
}
return ErrFailedNegotiation
}
// tryAddress executes a single create session dance using the given address.