Skip to content

Commit

Permalink
♻️ fix
Browse files Browse the repository at this point in the history
Signed-off-by: vankichi <[email protected]>
  • Loading branch information
vankichi authored and actions-user committed Jul 7, 2020
1 parent da7b768 commit f804947
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/singleflight/singleflight.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ func New(size int) Group {
}
}

// Do returns a set of the cache of the first return value from function as interface{}, shared flg as bool, and err as error
// Do returns a set of the cache of the first return value from function
// as interface{}, shared flg as bool, and err as error
// when the function is called multiple times in an instant.
func (g *group) Do(ctx context.Context, key string, fn func() (interface{}, error)) (v interface{}, shared bool, err error) {
g.mu.RLock()
Expand Down

0 comments on commit f804947

Please sign in to comment.