diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2022-07-13 20:16:46 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2022-07-13 21:52:30 -0600 |
commit | 22eec24d24aae8c5f839798f8f19eb54f06e98b4 (patch) | |
tree | 7fa554080115886039b2a62efd8d3df04b088047 /lib/containers/syncmap.go | |
parent | 7a2a4b9af7b3526059750224900964b112f58947 (diff) |
Misc tidy up
Diffstat (limited to 'lib/containers/syncmap.go')
-rw-r--r-- | lib/containers/syncmap.go | 8 |
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) +} |