Merge pull request #1754 from ipfs-cluster/struct-align-comment
Add comments to struct fields that must be aligned.
This commit is contained in:
commit
8c93d4cb81
|
@ -48,8 +48,8 @@ var logger = logging.Logger("ipfshttp")
|
|||
// on-demand requests against the configured IPFS daemom
|
||||
// (such as a pin request).
|
||||
type Connector struct {
|
||||
// struct alignment! These fields must be up-front.
|
||||
updateMetricCount uint64
|
||||
|
||||
ipfsPinCount int64
|
||||
|
||||
ctx context.Context
|
||||
|
|
|
@ -27,6 +27,7 @@ var logger = logging.Logger("optracker")
|
|||
|
||||
// OperationTracker tracks and manages all inflight Operations.
|
||||
type OperationTracker struct {
|
||||
// struct alignment. This fields must be upfront!
|
||||
pinningCount int64
|
||||
pinErrorCount int64
|
||||
pinQueuedCount int64
|
||||
|
|
Loading…
Reference in New Issue
Block a user