Repository navigation
chore(vpn): upsert agents with their network status - #15659
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
cf43bdd to
594fbc6
Compare
594fbc6 to
1347916
Compare
| } | ||
| resp.Msg = &TunnelMessage_PeerUpdate{ | ||
| PeerUpdate: convertWorkspaceUpdate(state), | ||
| PeerUpdate: update, |
There was a problem hiding this comment.
Is it OK to send a nil PeerUpdate in the response?
There was a problem hiding this comment.
Good catch, I don't think we should.
For pushed updates, if there's no active connection (for whatever reason, should be impossible once the tunnel has started), we'll just send a nil last handshake time.
For requested updates, I think we have to send a nil PeerUpdate if we can't call CurentWorkspaceState.
d150a25 to
a456281
Compare
There was a problem hiding this comment.
There was a problem hiding this comment.
There was a problem hiding this comment.
The original code also sent resp := &TunnelMessage{} as a reply for the default: branch, so I assume it's still fine.
469ff7a to
07dc614
Compare
e3f8508 to
561f65f
Compare
07dc614 to
359aaeb
Compare
561f65f to
6cd9c76
Compare
359aaeb to
ba48069
Compare
6cd9c76 to
b2fd151
Compare
b2fd151 to
acdd09d
Compare

Closes #14734.