(address: RunnerAddress)
| 256 | const getRegistrationEvents: Stream.Stream<ShardingRegistrationEvent> = Stream.fromPubSub(events) |
| 257 | |
| 258 | const isLocalRunner = (address: RunnerAddress) => { |
| 259 | const runnerAddress = getRunnerAddress() |
| 260 | return runnerAddress !== undefined && Equal.equals(address, runnerAddress) |
| 261 | } |
| 262 | |
| 263 | function getShardId(entityId: EntityId, group: string): ShardId { |
| 264 | const id = Math.abs(hashString(entityId) % config.shardsPerGroup) + 1 |
no test coverage detected