parent
83884eb475
commit
087e4212d4
2 changed files with 4 additions and 5 deletions
|
|
@ -36,7 +36,7 @@ public class PersistentSimpleService {
|
|||
public String count() {
|
||||
if (storage == null) storage = CassandraStorage.newMap();
|
||||
if (!hasStartedTicking) {
|
||||
storage.put(KEY.getBytes(), ByteBuffer.allocate(2).putInt(0).array());
|
||||
storage.put(KEY.getBytes(), ByteBuffer.allocate(4).putInt(0).array());
|
||||
hasStartedTicking = true;
|
||||
return "Tick: 0\n";
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue