This commit is contained in:
Evan Jarrett
2026-01-04 21:11:32 -06:00
parent a7175f9e3e
commit 680e4bdfe2
4 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -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
- goimports
+2 -2
View File
@@ -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) {
+1 -1
View File
@@ -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
}
+2 -2
View File
@@ -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