Skip to content

Commit

Permalink
Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCutter committed Dec 9, 2024
1 parent de21427 commit a62eadf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/layout/paths.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func ParseTileIndexPartial(index string) (uint64, uint8, error) {
var err error
w64, err := strconv.ParseUint(indexPaths[len(indexPaths)-1], 10, 64)
if err != nil || w64 < 1 || w64 >= TileWidth {
return 0, 0, fmt.Errorf("failed to parse tile index")
return 0, 0, fmt.Errorf("failed to parse tile width")
}
w = uint8(w64)
indexPaths[len(indexPaths)-2] = strings.TrimSuffix(indexPaths[len(indexPaths)-2], ".p")
Expand Down
2 changes: 1 addition & 1 deletion api/layout/tile.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const (
TileHeight = 8
// TileWidth is the maximum number of hashes which can be present in the bottom row of a tile.
TileWidth = 1 << TileHeight
// EntryBundleWirth is the maximum number of entries which can be present in an EntryBundle.
// EntryBundleWidth is the maximum number of entries which can be present in an EntryBundle.
// This is defined to be the same as the width of the node tiles by tlog-tile spec.
EntryBundleWidth = TileWidth
)
Expand Down

0 comments on commit a62eadf

Please sign in to comment.