From 06cbf10a576f8d8a33f95c1b9dfb44a9e6f7e330 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Thu, 11 Jun 2026 07:41:43 +0000 Subject: object/id: Export MaxObjectIDSize --- object/id/object_format_details.go | 4 ++-- object/id/object_format_ops.go | 2 +- object/id/object_id.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'object') diff --git a/object/id/object_format_details.go b/object/id/object_format_details.go index d0278602..4dad5871 100644 --- a/object/id/object_format_details.go +++ b/object/id/object_format_details.go @@ -50,8 +50,8 @@ var objectFormatTable = [...]objectFormatDetails{ }, } -// maxObjectIDSize MUST be >= the largest supported object format size. -const maxObjectIDSize = sha256.Size +// MaxObjectIDSize MUST be >= the largest supported object format size. +const MaxObjectIDSize = sha256.Size var ( //nolint:gochecknoglobals diff --git a/object/id/object_format_ops.go b/object/id/object_format_ops.go index 51bcae82..3e15b157 100644 --- a/object/id/object_format_ops.go +++ b/object/id/object_format_ops.go @@ -83,6 +83,6 @@ func (objectFormat ObjectFormat) Sum(data []byte) ObjectID { func (objectFormat ObjectFormat) Zero() ObjectID { return ObjectID{ objectFormat: objectFormat, - data: [maxObjectIDSize]byte{}, + data: [MaxObjectIDSize]byte{}, } } diff --git a/object/id/object_id.go b/object/id/object_id.go index 926142ef..1171504d 100644 --- a/object/id/object_id.go +++ b/object/id/object_id.go @@ -5,5 +5,5 @@ package id //nolint:recvcheck type ObjectID struct { objectFormat ObjectFormat - data [maxObjectIDSize]byte + data [MaxObjectIDSize]byte } -- cgit v1.3.1-10-gc9f91