parent
4ee732e0bd
commit
95cc3f9b81
|
|
@ -558,7 +558,7 @@ func (m *GCounterState) GetValue() uint64 {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
// A Positve-Negative Counter
|
// A Positive-Negative Counter
|
||||||
//
|
//
|
||||||
// A PN-Counter can be both incremented and decremented.
|
// A PN-Counter can be both incremented and decremented.
|
||||||
type PNCounterState struct {
|
type PNCounterState struct {
|
||||||
|
|
|
||||||
|
|
@ -114,7 +114,7 @@ message CrdtState {
|
||||||
// A Grow-only Counter
|
// A Grow-only Counter
|
||||||
GCounterState gcounter = 1;
|
GCounterState gcounter = 1;
|
||||||
|
|
||||||
// A Positve-Negative Counter
|
// A Positive-Negative Counter
|
||||||
PNCounterState pncounter = 2;
|
PNCounterState pncounter = 2;
|
||||||
|
|
||||||
// A Grow-only Set
|
// A Grow-only Set
|
||||||
|
|
@ -146,7 +146,7 @@ message GCounterState {
|
||||||
uint64 value = 1;
|
uint64 value = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// A Positve-Negative Counter
|
// A Positive-Negative Counter
|
||||||
//
|
//
|
||||||
// A PN-Counter can be both incremented and decremented.
|
// A PN-Counter can be both incremented and decremented.
|
||||||
message PNCounterState {
|
message PNCounterState {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue