SendUpdate makes a /map request to update the server of our latest state, but does not fetch anything. It returns an error if the server did not return a successful 200 OK response.
(ctx context.Context)
| 1008 | // does not fetch anything. It returns an error if the server did not return a |
| 1009 | // successful 200 OK response. |
| 1010 | func (c *Direct) SendUpdate(ctx context.Context) error { |
| 1011 | return c.sendMapRequest(ctx, false, nil) |
| 1012 | } |
| 1013 | |
| 1014 | // SetDiscoPublicKey updates the disco public key in local state. |
| 1015 | // It does not implicitly trigger [SendUpdate]; callers should arrange for that. |
no test coverage detected