[ https://issues.apache.org/jira/browse/GOSSIP-63?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15901230#comment-15901230 ]
ASF GitHub Bot commented on GOSSIP-63: -------------------------------------- Github user edwardcapriolo commented on a diff in the pull request: https://github.com/apache/incubator-gossip/pull/41#discussion_r104913457 --- Diff: src/main/java/org/apache/gossip/crdt/GrowOnlyCounter.java --- @@ -0,0 +1,94 @@ +package org.apache.gossip.crdt; + + +import java.lang.annotation.ElementType; +import java.util.HashMap; +import java.util.Map; + +public class GrowOnlyCounter implements CrdtCounter<Long, GrowOnlyCounter> { + + + private final Map<String, Long> counters = new HashMap<>(); + private final String myID; --- End diff -- Comment above about myId it should be myId not myID and I think we wish it to be transient or not serialized as it crosses the wire. > Implement Crdt G-Counter > ------------------------ > > Key: GOSSIP-63 > URL: https://issues.apache.org/jira/browse/GOSSIP-63 > Project: Gossip > Issue Type: New Feature > Reporter: Edward Capriolo > -- This message was sent by Atlassian JIRA (v6.3.15#6346)