Skip to content

Commit

Permalink
prefix numbers with letters
Browse files Browse the repository at this point in the history
  • Loading branch information
canercidam committed Dec 18, 2023
1 parent bfe014c commit 75737a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/agents.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,11 @@ func (ac AgentConfig) ContainerName() string {
parts := []string{ContainerNamePrefix, "agent", utils.ShortenString(ac.ID, 8), utils.ShortenString(digest, 4)}

if ac.ProtocolVersion >= 2 {
parts = append(parts, strconv.Itoa(ac.ChainID)) // append the chain id
parts = append(parts, "c"+strconv.Itoa(ac.ChainID)) // append the chain id
}

if ac.IsSharded() {
parts = append(parts, strconv.Itoa(int(ac.ShardConfig.ShardID))) // append the shard id at the end
parts = append(parts, "s"+strconv.Itoa(int(ac.ShardConfig.ShardID))) // append the shard id at the end
}
return strings.Join(parts, "-")
}
Expand Down

0 comments on commit 75737a2

Please sign in to comment.