()
| 561 | } |
| 562 | |
| 563 | func (c *counterInt64) localState() CounterInt64State { |
| 564 | return CounterInt64State{ |
| 565 | Value: c.value.Load(), |
| 566 | UpdatedAt: c.updatedAtMs(), |
| 567 | UpdatedBy: c.registry.instanceId, |
| 568 | } |
| 569 | } |
| 570 | |
| 571 | func (c *counterInt64) tryGetRemoteState(ctx context.Context) (CounterInt64State, bool) { |
| 572 | remoteVal, err := c.registry.connector.Get(ctx, ConnectorMainIndex, c.key, "value", nil) |
no test coverage detected