diff options
Diffstat (limited to 'src/lib/once.go')
-rw-r--r-- | src/lib/once.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/once.go b/src/lib/once.go index 6019df515..e1466ab8e 100644 --- a/src/lib/once.go +++ b/src/lib/once.go @@ -17,12 +17,12 @@ type _Job struct { } type _Request struct { - f *(); + f func(); reply chan *_Job } var service = make(chan _Request) -var jobmap = make(map[*()]*_Job) +var jobmap = make(map[func()]*_Job) // Moderate access to the jobmap. // Even if accesses were thread-safe (they should be but are not) @@ -42,7 +42,7 @@ func server() { } } -func Do(f *()) { +func Do(f func()) { // Look for job in map (avoids channel communication). // If not there, ask map server to make one. // TODO: Uncomment use of jobmap[f] once |