From 680e4bdfe20dfd15f442458f2f317ce96ce3cb1d Mon Sep 17 00:00:00 2001 From: Evan Jarrett Date: Sun, 4 Jan 2026 21:11:32 -0600 Subject: [PATCH] fmt --- .golangci.yml | 4 ++-- pkg/appview/handlers/storage.go | 4 ++-- pkg/hold/pds/layer.go | 2 +- pkg/hold/pds/xrpc.go | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 5ad280e..43e25c0 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,7 +1,7 @@ # golangci-lint configuration for ATCR # See: https://golangci-lint.run/usage/configuration/ version: "2" -linters: +linters: settings: staticcheck: checks: @@ -23,4 +23,4 @@ linters: formatters: enable: - gofmt - - goimports \ No newline at end of file + - goimports diff --git a/pkg/appview/handlers/storage.go b/pkg/appview/handlers/storage.go index cc2577c..9a79ad5 100644 --- a/pkg/appview/handlers/storage.go +++ b/pkg/appview/handlers/storage.go @@ -25,8 +25,8 @@ type QuotaStats struct { UserDID string `json:"userDid"` UniqueBlobs int `json:"uniqueBlobs"` TotalSize int64 `json:"totalSize"` - Limit *int64 `json:"limit,omitempty"` // nil = unlimited - Berth string `json:"berth,omitempty"` // e.g., "deckhand", "bosun", "owner" + Limit *int64 `json:"limit,omitempty"` // nil = unlimited + Berth string `json:"berth,omitempty"` // e.g., "deckhand", "bosun", "owner" } func (h *StorageHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { diff --git a/pkg/hold/pds/layer.go b/pkg/hold/pds/layer.go index c1818cc..1282160 100644 --- a/pkg/hold/pds/layer.go +++ b/pkg/hold/pds/layer.go @@ -66,7 +66,7 @@ type QuotaStats struct { UserDID string `json:"userDid"` UniqueBlobs int `json:"uniqueBlobs"` TotalSize int64 `json:"totalSize"` - Limit *int64 `json:"limit,omitempty"` // nil = unlimited + Limit *int64 `json:"limit,omitempty"` // nil = unlimited Berth string `json:"berth,omitempty"` // nautical rank for quota tier } diff --git a/pkg/hold/pds/xrpc.go b/pkg/hold/pds/xrpc.go index 8645ce5..3689a1c 100644 --- a/pkg/hold/pds/xrpc.go +++ b/pkg/hold/pds/xrpc.go @@ -47,8 +47,8 @@ type XRPCHandler struct { s3Service s3.S3Service storageDriver driver.StorageDriver broadcaster *EventBroadcaster - httpClient HTTPClient // For testing - allows injecting mock HTTP client - quotaMgr *quota.Manager // Quota manager for tier-based limits + httpClient HTTPClient // For testing - allows injecting mock HTTP client + quotaMgr *quota.Manager // Quota manager for tier-based limits } // PartInfo represents a completed part in a multipart upload