Actually use the last known signature for fetching
This commit is contained in:
parent
678c820db2
commit
9f20802a1d
|
@ -53,6 +53,7 @@ func (ta *TokenBoardClient) NewInstance() tapir.Application {
|
||||||
tba.acn = ta.acn
|
tba.acn = ta.acn
|
||||||
tba.tokenService = ta.tokenService
|
tba.tokenService = ta.tokenService
|
||||||
tba.tokenServiceOnion = ta.tokenServiceOnion
|
tba.tokenServiceOnion = ta.tokenServiceOnion
|
||||||
|
tba.lastKnownSignature = ta.lastKnownSignature
|
||||||
return tba
|
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
|
// 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
|
var message groups.Message
|
||||||
if err := json.Unmarshal(data, &message); err != nil {
|
if err := json.Unmarshal(data, &message); err != nil {
|
||||||
log.Debugf("Server sent an unexpected message, closing the connection: %v", err)
|
log.Debugf("Server sent an unexpected message, closing the connection: %v", err)
|
||||||
|
|
Loading…
Reference in New Issue