aboutsummaryrefslogtreecommitdiff
path: root/rutina.go
diff options
context:
space:
mode:
Diffstat (limited to 'rutina.go')
-rwxr-xr-xrutina.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/rutina.go b/rutina.go
index a38c384..9531cbb 100755
--- a/rutina.go
+++ b/rutina.go
@@ -25,7 +25,7 @@ type Rutina struct {
// New instance with builtin context
func New(mixins ...Mixin) *Rutina {
ctx, cancel := context.WithCancel(context.Background())
- var counter uint64 = 0
+ var counter uint64
r := &Rutina{ctx: ctx, Cancel: cancel, counter: &counter, errCh: nil}
return r.With(mixins...)
}