git.iko.soy
/
crush
readme
files
commits
refs
on
main
help
sign in
fix: make sure to unlock in goroutine (#1820)
2350f7e
Carlos Alexandro Becker
9 months ago
internal/csync/maps.go
+1
−1
compare with main
unified
split
@@ -33,8 +33,8 @@ func NewLazyMap[K comparable, V any](load func() map[K]V) *Map[K, V] {
33
m := &Map[K, V]{}
33
m := &Map[K, V]{}
34
m.mu.Lock()
34
m.mu.Lock()
35
go
func
() {
35
go
func
() {
36
+
defer
m.mu.Unlock()
36
m.inner = load()
37
m.inner = load()
37
−
m.mu.Unlock()
38
}()
38
}()
39
return
m
39
return
m
40
}
40
}
keys
esc to close
j k
move down, up
enter
open
esc
back, or up a level
1 2 3 4
readme, files, commits, refs
/
filter
y
copy the clone command
c
compare the chosen commit with another (or shift-click both)
?
show or hide this list