CounterStore currently supports only increase operations `inc(value)`. It should also support decrements `dec(value)`. This can be done by implementing a PN-Counter in https://github.com/haadcode/crdts and adding appropriate interface to CounterStore. PN-Counter works like this: https://en.wikipedia.org/wiki/Conflict-free_replicated_data_type#State-based_PN-counter
CounterStore currently supports only increase operations
inc(value). It should also support decrementsdec(value).This can be done by implementing a PN-Counter in https://github.com/haadcode/crdts and adding appropriate interface to CounterStore.
PN-Counter works like this: https://en.wikipedia.org/wiki/Conflict-free_replicated_data_type#State-based_PN-counter