(traceID []byte, shardCount int)
| 81 | } |
| 82 | |
| 83 | func ShardKeyForTraceID(traceID []byte, shardCount int) int { |
| 84 | return int(util.TokenForTraceID(traceID)) % ValidateShardCount(shardCount) |
| 85 | } |
| 86 | |
| 87 | // For backward compatibility |
| 88 | func ValidateShardCount(shardCount int) int { |