rename sharedcalls to singleflight (#1017)
This commit is contained in:
@@ -15,7 +15,7 @@ type RpcProxy struct {
|
||||
backend string
|
||||
clients map[string]Client
|
||||
options []internal.ClientOption
|
||||
sharedCalls syncx.SharedCalls
|
||||
sharedCalls syncx.SingleFlight
|
||||
lock sync.Mutex
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ func NewProxy(backend string, opts ...internal.ClientOption) *RpcProxy {
|
||||
backend: backend,
|
||||
clients: make(map[string]Client),
|
||||
options: opts,
|
||||
sharedCalls: syncx.NewSharedCalls(),
|
||||
sharedCalls: syncx.NewSingleFlight(),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user