Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
256dpi committed Jan 16, 2019
1 parent 2f77548 commit 95da221
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/future/future.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ var ErrCanceled = errors.New("future canceled")
// A Future is a low-level future type that can be extended to transport
// custom information.
type Future struct {
Data sync.Map
Data *sync.Map

completeChannel chan struct{}
cancelChannel chan struct{}
Expand All @@ -25,6 +25,7 @@ type Future struct {
// New will return a new Future.
func New() *Future {
return &Future{
Data: new(sync.Map),
completeChannel: make(chan struct{}),
cancelChannel: make(chan struct{}),
}
Expand Down

0 comments on commit 95da221

Please sign in to comment.