Do not access node ID when node is not found (#1912)

This commit is contained in:
Juan Font 2024-04-24 07:44:35 +02:00 committed by GitHub
parent c62d5570f2
commit fef8261339
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -226,7 +226,6 @@ func (ns *noiseServer) NoisePollNetMapHandler(
if err != nil { if err != nil {
log.Error(). log.Error().
Str("handler", "NoisePollNetMap"). Str("handler", "NoisePollNetMap").
Uint64("node.id", node.ID.Uint64()).
Msgf("Failed to fetch node from the database with node key: %s", mapRequest.NodeKey.String()) Msgf("Failed to fetch node from the database with node key: %s", mapRequest.NodeKey.String())
http.Error(writer, "Internal error", http.StatusInternalServerError) http.Error(writer, "Internal error", http.StatusInternalServerError)