Allow force restarting of file shares regardless of timestamp. #530

Merged
sarah merged 9 commits from stable-blockers into master 2023-08-31 18:51:41 +00:00
2 changed files with 5 additions and 5 deletions
Showing only changes of commit fb164b104b - Show all commits

View File

@ -259,7 +259,7 @@ func (cr *contactRetry) run() {
cr.addConnection(server, connections.DISCONNECTED, serverConn, lastSeen)
}
// this was an authorized event, and so we store this peer.
log.Debugf("authorizing id: %v", id);
log.Debugf("authorizing id: %v", id)
cr.authorizedPeers.Store(id, true)
if c, ok := cr.connections.Load(id); ok {
contact := c.(*contact)

View File

@ -36,10 +36,10 @@ func TestContactRetryQueue(t *testing.T) {
for {
if pinf, exists := cr.connections.Load(testOnion); exists {
if pinf.(*contact).queued {
if _,exists := cr.authorizedPeers.Load(testOnion); exists {
t.Logf("authorized");
break;
}
if _, exists := cr.authorizedPeers.Load(testOnion); exists {
t.Logf("authorized")
break
}
}
}
}