mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-18 08:16:39 +00:00
go gc
This commit is contained in:
@@ -3,6 +3,7 @@ package types
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"runtime"
|
||||||
"slices"
|
"slices"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
@@ -1057,6 +1058,7 @@ func (b *NetworkMapBuilder) OnPeerAddedIncremental(peerID string) error {
|
|||||||
|
|
||||||
log.Debugf("NetworkMapBuilder: Added peer %s to cache", peerID)
|
log.Debugf("NetworkMapBuilder: Added peer %s to cache", peerID)
|
||||||
|
|
||||||
|
runtime.GC()
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user