Actually use the last known signature for fetching
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
Sarah Jamie Lewis 2021-05-07 15:34:48 -07:00
parent 678c820db2
commit 9f20802a1d
1 changed files with 1 additions and 1 deletions

View File

@ -53,6 +53,7 @@ func (ta *TokenBoardClient) NewInstance() tapir.Application {
tba.acn = ta.acn
tba.tokenService = ta.tokenService
tba.tokenServiceOnion = ta.tokenServiceOnion
tba.lastKnownSignature = ta.lastKnownSignature
return tba
}
@ -82,7 +83,6 @@ func (ta *TokenBoardClient) Listen() {
}
// We always expect the server to follow protocol, and the second it doesn't we close the connection
// TODO issue an error so the client is aware
var message groups.Message
if err := json.Unmarshal(data, &message); err != nil {
log.Debugf("Server sent an unexpected message, closing the connection: %v", err)