mirror of
https://github.com/juanfont/headscale.git
synced 2025-03-18 17:58:32 -04:00
Remove leftover printf
This commit is contained in:
parent
29ba29478b
commit
0a243b4162
@ -2,7 +2,6 @@ package routes
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
|
||||||
"net/netip"
|
"net/netip"
|
||||||
"slices"
|
"slices"
|
||||||
"sort"
|
"sort"
|
||||||
@ -114,7 +113,6 @@ func (pr *PrimaryRoutes) SetRoutes(node types.NodeID, prefix ...netip.Prefix) bo
|
|||||||
|
|
||||||
// If no routes are being set, remove the node from the routes map.
|
// If no routes are being set, remove the node from the routes map.
|
||||||
if len(prefix) == 0 {
|
if len(prefix) == 0 {
|
||||||
log.Printf("Removing node %d from routes", node)
|
|
||||||
if _, ok := pr.routes[node]; ok {
|
if _, ok := pr.routes[node]; ok {
|
||||||
delete(pr.routes, node)
|
delete(pr.routes, node)
|
||||||
return pr.updatePrimaryLocked()
|
return pr.updatePrimaryLocked()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user