summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/containers/syncmap.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/containers/syncmap.go b/lib/containers/syncmap.go
index 6c26b85..fb7f59b 100644
--- a/lib/containers/syncmap.go
+++ b/lib/containers/syncmap.go
@@ -12,7 +12,9 @@ type SyncMap[K comparable, V any] struct {
inner sync.Map
}
-func (m *SyncMap[K, V]) Delete(key K) { m.inner.Delete(key) }
+func (m *SyncMap[K, V]) Delete(key K) {
+ m.inner.Delete(key)
+}
func (m *SyncMap[K, V]) Load(key K) (value V, ok bool) {
_value, ok := m.inner.Load(key)
if ok {
@@ -37,4 +39,6 @@ func (m *SyncMap[K, V]) Range(f func(key K, value V) bool) {
return f(key.(K), value.(V))
})
}
-func (m *SyncMap[K, V]) Store(key K, value V) { m.inner.Store(key, value) }
+func (m *SyncMap[K, V]) Store(key K, value V) {
+ m.inner.Store(key, value)
+}