MCPcopy Create free account
hub / github.com/erpc/erpc / localState

Method localState

data/shared_state_variable.go:563–569  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 2

LoadMethod · 0.80
updatedAtMsMethod · 0.80

Tested by

no test coverage detected