mirror of
https://github.com/tiennm99/keepalive.git
synced 2026-10-11 03:13:31 +00:00
feat: not fatal if one failed
This commit is contained in:
1 parent
6256f15c49
commit
af0810ccb7
1 file changed
-1
@@ -121,7 +121,6 @@ func incrementCounter(col *gocb.Collection) error {
|
||||
// If it already exists, the count will increase by the amount provided in the Delta option(i.e 1).
|
||||
increment, err := col.Binary().Increment(counterDocId, &gocb.IncrementOptions{Initial: 1, Delta: 1})
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
return err
|
||||
}
|
||||
log.Printf("Counter : %d\n", increment.Content())
|
||||
|
||||
Reference in new issue
Block a user