(entityId: EntityId, group: string)
| 248 | Option.isSome(config.runnerAddress) && Equal.equals(address, config.runnerAddress.value) |
| 249 | |
| 250 | function getShardId(entityId: EntityId, group: string): ShardId { |
| 251 | const id = Math.abs(hashString(entityId) % config.shardsPerGroup) + 1 |
| 252 | return makeShardId(group, id) |
| 253 | } |
| 254 | |
| 255 | function isEntityOnLocalShards(address: EntityAddress): boolean { |
| 256 | return MutableHashSet.has(acquiredShards, address.shardId) |
no test coverage detected