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,9 +48,9 @@ var logger = logging.Logger("ipfshttp")
|
||||||
// on-demand requests against the configured IPFS daemom
|
// on-demand requests against the configured IPFS daemom
|
||||||
// (such as a pin request).
|
// (such as a pin request).
|
||||||
type Connector struct {
|
type Connector struct {
|
||||||
|
// struct alignment! These fields must be up-front.
|
||||||
updateMetricCount uint64
|
updateMetricCount uint64
|
||||||
|
ipfsPinCount int64
|
||||||
ipfsPinCount int64
|
|
||||||
|
|
||||||
ctx context.Context
|
ctx context.Context
|
||||||
cancel func()
|
cancel func()
|
||||||
|
|
|
@ -27,6 +27,7 @@ var logger = logging.Logger("optracker")
|
||||||
|
|
||||||
// OperationTracker tracks and manages all inflight Operations.
|
// OperationTracker tracks and manages all inflight Operations.
|
||||||
type OperationTracker struct {
|
type OperationTracker struct {
|
||||||
|
// struct alignment. This fields must be upfront!
|
||||||
pinningCount int64
|
pinningCount int64
|
||||||
pinErrorCount int64
|
pinErrorCount int64
|
||||||
pinQueuedCount int64
|
pinQueuedCount int64
|
||||||
|
|
Loading…
Reference in New Issue
Block a user