Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhengl committed Nov 19, 2024
1 parent 31ee929 commit 3cacc01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ type Options struct {
// Note: heap checking is "best effort", and it's possible for the process to OOM without triggering the heap profile.
HeapProfileTriggerBytes uint64

// ShardPrefix is the prefix of the shard. If empty, the repository name is used.
// ShardPrefix is the prefix of the shard. It defaults to the repository name.
ShardPrefix string
}

Expand Down
2 changes: 1 addition & 1 deletion internal/tenant/shards.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ import "fmt"
// SrcPrefix returns the Sourcegraph prefix of a shard. We put it here to avoid
// circular dependencies.
func SrcPrefix(tenantID int, repoID uint32) string {
return fmt.Sprintf("%09d_%09d_", tenantID, repoID)
return fmt.Sprintf("%09d_%09d", tenantID, repoID)
}

0 comments on commit 3cacc01

Please sign in to comment.