derp: increase update frequency and harden on failures (#2741)

This commit is contained in:
Kristoffer Dalby 2025-08-22 10:40:38 +02:00 committed by GitHub
parent 51c6367bb1
commit b87567628a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 417 additions and 67 deletions

View file

@ -79,7 +79,7 @@ func (b *MapResponseBuilder) WithSelfNode() *MapResponseBuilder {
// WithDERPMap adds the DERP map to the response
func (b *MapResponseBuilder) WithDERPMap() *MapResponseBuilder {
b.resp.DERPMap = b.mapper.state.DERPMap()
b.resp.DERPMap = b.mapper.state.DERPMap().AsStruct()
return b
}