mirror of
https://github.com/tim-beatham/smegmesh.git
synced 2025-08-14 07:18:32 +02:00
Fixing an issue where packets are dropped each time
we change wg configuration
This commit is contained in:
@ -1,9 +1,5 @@
|
||||
package lib
|
||||
|
||||
import (
|
||||
logging "github.com/tim-beatham/wgmesh/pkg/log"
|
||||
)
|
||||
|
||||
// MapToSlice converts a map to a slice in go
|
||||
func MapValues[K comparable, V any](m map[K]V) []V {
|
||||
return MapValuesWithExclude(m, map[K]struct{}{})
|
||||
@ -23,8 +19,6 @@ func MapValuesWithExclude[K comparable, V any](m map[K]V, exclude map[K]struct{}
|
||||
continue
|
||||
}
|
||||
|
||||
logging.Log.WriteInfof("Key %s", k)
|
||||
|
||||
values[i] = v
|
||||
i++
|
||||
}
|
||||
|
Reference in New Issue
Block a user