feat: not fatal if one failed

This commit is contained in:
tiennm99 committed 2025-11-26 20:25:42 +07:00
1 parent 6256f15c49
commit af0810ccb7
1 file changed
-1
-1
View File
@@ -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())