diff --git a/dapps/valuetransfers/packages/branchmanager/branch.go b/dapps/valuetransfers/packages/branchmanager/branch.go index cd7815e0ff43a7ac009a09cc5b2118bd6fe76418..7ebe2be916b3eb457069b676350fea745bfff297 100644 --- a/dapps/valuetransfers/packages/branchmanager/branch.go +++ b/dapps/valuetransfers/packages/branchmanager/branch.go @@ -407,7 +407,7 @@ func (branch *Branch) ObjectStorageValue() []byte { parentBranches := branch.ParentBranches() parentBranchCount := len(parentBranches) - marshalUtil := marshalutil.New(5*marshalutil.BOOL_SIZE + marshalutil.UINT32_SIZE + parentBranchCount*BranchIDLength) + marshalUtil := marshalutil.New(5*marshalutil.BoolSize + marshalutil.Uint32Size + parentBranchCount*BranchIDLength) marshalUtil.WriteBool(branch.Preferred()) marshalUtil.WriteBool(branch.Liked()) marshalUtil.WriteBool(branch.Finalized()) diff --git a/dapps/valuetransfers/packages/branchmanager/conflict.go b/dapps/valuetransfers/packages/branchmanager/conflict.go index 3a16f45ae27269c7128c1b7e7b4b64288419172a..72e25d933c83ad059869e74fa1b7f45de532bede 100644 --- a/dapps/valuetransfers/packages/branchmanager/conflict.go +++ b/dapps/valuetransfers/packages/branchmanager/conflict.go @@ -128,7 +128,7 @@ func (conflict *Conflict) ObjectStorageKey() []byte { // ObjectStorageValue returns the bytes that represent all remaining information (not stored in the key) of a marshaled // Branch. func (conflict *Conflict) ObjectStorageValue() []byte { - return marshalutil.New(marshalutil.UINT32_SIZE). + return marshalutil.New(marshalutil.Uint32Size). WriteUint32(uint32(conflict.MemberCount())). Bytes() } diff --git a/dapps/valuetransfers/packages/payload/payload.go b/dapps/valuetransfers/packages/payload/payload.go index 914925cbd416019cab51bcdf6b644d1c6f80e2a7..62b3b9078a9a8186aba513edbe470be3cdef93e9 100644 --- a/dapps/valuetransfers/packages/payload/payload.go +++ b/dapps/valuetransfers/packages/payload/payload.go @@ -223,7 +223,7 @@ func (p *Payload) ObjectStorageValue() (bytes []byte) { // marshal fields payloadLength := IDLength + IDLength + len(transferBytes) - marshalUtil := marshalutil.New(marshalutil.UINT32_SIZE + marshalutil.UINT32_SIZE + payloadLength) + marshalUtil := marshalutil.New(marshalutil.Uint32Size + marshalutil.Uint32Size + payloadLength) marshalUtil.WriteUint32(uint32(payloadLength)) marshalUtil.WriteBytes(Type.Bytes()) marshalUtil.WriteBytes(p.parent1PayloadID.Bytes()) diff --git a/dapps/valuetransfers/packages/tangle/missingoutput.go b/dapps/valuetransfers/packages/tangle/missingoutput.go index 796c666ea8869cfd0c40fd4b4df970c29503c0aa..6afe4bbddaf94e4f52def0224456ac6e7fbf88f6 100644 --- a/dapps/valuetransfers/packages/tangle/missingoutput.go +++ b/dapps/valuetransfers/packages/tangle/missingoutput.go @@ -93,7 +93,7 @@ func (missingOutput *MissingOutput) MissingSince() time.Time { // Bytes marshals the MissingOutput into a sequence of bytes. func (missingOutput *MissingOutput) Bytes() []byte { - return marshalutil.New(transaction.OutputIDLength + marshalutil.TIME_SIZE). + return marshalutil.New(transaction.OutputIDLength + marshalutil.TimeSize). WriteBytes(missingOutput.ObjectStorageKey()). WriteBytes(missingOutput.ObjectStorageValue()). Bytes() @@ -107,7 +107,7 @@ func (missingOutput *MissingOutput) ObjectStorageKey() []byte { // ObjectStorageValue returns a bytes representation of the Transaction by implementing the encoding.BinaryMarshaler // interface. func (missingOutput *MissingOutput) ObjectStorageValue() []byte { - return marshalutil.New(marshalutil.TIME_SIZE). + return marshalutil.New(marshalutil.TimeSize). WriteTime(missingOutput.MissingSince()). Bytes() } diff --git a/dapps/valuetransfers/packages/tangle/missingpayload.go b/dapps/valuetransfers/packages/tangle/missingpayload.go index bd828290aa4fe2868c30df75cd651b58ebe0c8e1..602fe2b0119beaeb8e522c0babdede81c643ddb4 100644 --- a/dapps/valuetransfers/packages/tangle/missingpayload.go +++ b/dapps/valuetransfers/packages/tangle/missingpayload.go @@ -93,7 +93,7 @@ func (missingPayload *MissingPayload) ObjectStorageKey() []byte { // ObjectStorageValue is required to match the encoding.BinaryMarshaler interface. func (missingPayload *MissingPayload) ObjectStorageValue() (data []byte) { - return marshalutil.New(marshalutil.TIME_SIZE). + return marshalutil.New(marshalutil.TimeSize). WriteTime(missingPayload.MissingSince()). Bytes() } diff --git a/dapps/valuetransfers/packages/tangle/output.go b/dapps/valuetransfers/packages/tangle/output.go index afe04068cc11ba056956b3675800002753ce0bd1..059e2b20eade75cd46f8d39ba903ee8c7505405b 100644 --- a/dapps/valuetransfers/packages/tangle/output.go +++ b/dapps/valuetransfers/packages/tangle/output.go @@ -455,7 +455,7 @@ func (output *Output) ObjectStorageValue() []byte { balanceCount := len(balances) // initialize helper - marshalUtil := marshalutil.New(branchmanager.BranchIDLength + 6*marshalutil.BOOL_SIZE + marshalutil.TIME_SIZE + transaction.IDLength + marshalutil.UINT32_SIZE + marshalutil.UINT32_SIZE + balanceCount*balance.Length) + marshalUtil := marshalutil.New(branchmanager.BranchIDLength + 6*marshalutil.BoolSize + marshalutil.TimeSize + transaction.IDLength + marshalutil.Uint32Size + marshalutil.Uint32Size + balanceCount*balance.Length) marshalUtil.WriteBytes(output.branchID.Bytes()) marshalUtil.WriteBool(output.Solid()) marshalUtil.WriteTime(output.SolidificationTime()) diff --git a/dapps/valuetransfers/packages/tangle/payloadmetadata.go b/dapps/valuetransfers/packages/tangle/payloadmetadata.go index 4aeba437e86d91c1e021f486b99498c724f4f342..409e592e20e70a6f574eccbca3a07bd804766924 100644 --- a/dapps/valuetransfers/packages/tangle/payloadmetadata.go +++ b/dapps/valuetransfers/packages/tangle/payloadmetadata.go @@ -305,7 +305,7 @@ func (payloadMetadata *PayloadMetadata) Update(other objectstorage.StorableObjec // ObjectStorageValue is required to match the encoding.BinaryMarshaler interface. func (payloadMetadata *PayloadMetadata) ObjectStorageValue() []byte { - return marshalutil.New(marshalutil.TIME_SIZE + 4*marshalutil.BOOL_SIZE). + return marshalutil.New(marshalutil.TimeSize + 4*marshalutil.BoolSize). WriteTime(payloadMetadata.SolidificationTime()). WriteBool(payloadMetadata.IsSolid()). WriteBool(payloadMetadata.Liked()). diff --git a/dapps/valuetransfers/packages/tangle/transactionmetadata.go b/dapps/valuetransfers/packages/tangle/transactionmetadata.go index 2f9c0543c7a5a91f3ceb9538959d520e969a508f..1a36ea129509da1a7c2fae3704b55950c1654aec 100644 --- a/dapps/valuetransfers/packages/tangle/transactionmetadata.go +++ b/dapps/valuetransfers/packages/tangle/transactionmetadata.go @@ -406,7 +406,7 @@ func (transactionMetadata *TransactionMetadata) Update(other objectstorage.Stora // ObjectStorageValue marshals the TransactionMetadata object into a sequence of bytes and matches the encoding.BinaryMarshaler // interface. func (transactionMetadata *TransactionMetadata) ObjectStorageValue() []byte { - return marshalutil.New(branchmanager.BranchIDLength + 2*marshalutil.TIME_SIZE + 6*marshalutil.BOOL_SIZE). + return marshalutil.New(branchmanager.BranchIDLength + 2*marshalutil.TimeSize + 6*marshalutil.BoolSize). WriteBytes(transactionMetadata.BranchID().Bytes()). WriteTime(transactionMetadata.SolidificationTime()). WriteTime(transactionMetadata.FinalizationTime()). diff --git a/go.mod b/go.mod index 73e03dc3a5fd50afe124d882993b0c3f1b5698b7..e5a0eac19bf811877761a2d7dc2c7f286a6ddcae 100644 --- a/go.mod +++ b/go.mod @@ -12,7 +12,7 @@ require ( github.com/go-ole/go-ole v1.2.4 // indirect github.com/golang/protobuf v1.4.3 github.com/gorilla/websocket v1.4.2 - github.com/iotaledger/hive.go v0.0.0-20201026194603-90676fed31f9 + github.com/iotaledger/hive.go v0.0.0-20201030150707-82a3d1909e62 github.com/labstack/echo v3.3.10+incompatible github.com/labstack/gommon v0.3.0 github.com/magiconair/properties v1.8.1 diff --git a/go.sum b/go.sum index 27120d12e2677d02c404d2a26cab5595b3f61628..3d91bb7e0855934eecf5e6822b597d71e763014e 100644 --- a/go.sum +++ b/go.sum @@ -90,7 +90,6 @@ github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGX github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa/go.mod h1:zn76sxSg3SzpJ0PPJaLDCu+Bu0Lg3sKTORVIj19EIF8= github.com/cockroachdb/errors v1.2.4/go.mod h1:rQD95gz6FARkaKkQXUksEje/d9a6wBJoCr5oaCLELYA= github.com/cockroachdb/logtags v0.0.0-20190617123548-eb05cc24525f/go.mod h1:i/u985jwjWRlyHXQbwatDASoW0RMlZ/3i9yJHE2xLkI= -github.com/cockroachdb/pebble v0.0.0-20200915204653-08b545a1f540/go.mod h1:hU7vhtrqonEphNF+xt8/lHdaBprxmV1h8BOGrd9XwmQ= github.com/cockroachdb/pebble v0.0.0-20201023120638-f1224da22976/go.mod h1:BbtTitvfmE0eZNcncJgJw5BlQhskTzgZgoISnY+8s6k= github.com/cockroachdb/redact v0.0.0-20200622112456-cd282804bbd3/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZZ2lK+dpvRg= github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd h1:qMd81Ts1T2OTKmB4acZcyKaMtRnY5Y44NuXGX2GFJ1w= @@ -368,10 +367,8 @@ github.com/huin/goupnp v1.0.0/go.mod h1:n9v9KO1tAxYH82qOn+UTIFQDmx5n1Zxd/ClZDMX7 github.com/huin/goutil v0.0.0-20170803182201-1ca381bf3150/go.mod h1:PpLOETDnJ0o3iZrZfqZzyLl6l7F3c6L1oWn7OICBi6o= github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= github.com/influxdata/influxdb1-client v0.0.0-20191209144304-8bf82d3c094d/go.mod h1:qj24IKcXYK6Iy9ceXlo3Tc+vtHo9lIhSX5JddghvEPo= -github.com/iotaledger/hive.go v0.0.0-20201010155836-c0af5551de50 h1:dHSz9lKA4Cemj+vecCzVeHQNBJrGjzAZ5wNYtX1a/x0= -github.com/iotaledger/hive.go v0.0.0-20201010155836-c0af5551de50/go.mod h1:h56kcBj+CYn3UEoCG6RJI5lVdYVJmhmeuIHOUgFCfEg= -github.com/iotaledger/hive.go v0.0.0-20201026194603-90676fed31f9 h1:iRZdsjS3upMCTjZPhdhZkUTq8vqAtwOLHxnyumS3a44= -github.com/iotaledger/hive.go v0.0.0-20201026194603-90676fed31f9/go.mod h1:xqn2tIsuGgEU68fgTiR5SH6tD1hxRwznLfvgR0ZEPUs= +github.com/iotaledger/hive.go v0.0.0-20201030150707-82a3d1909e62 h1:14zdgqiNjtpmXavhh1G8epTHOIG2RCjuOvAl88Il9xQ= +github.com/iotaledger/hive.go v0.0.0-20201030150707-82a3d1909e62/go.mod h1:xqn2tIsuGgEU68fgTiR5SH6tD1hxRwznLfvgR0ZEPUs= github.com/ipfs/go-cid v0.0.1/go.mod h1:GHWU/WuQdMPmIosc4Yn1bcCT7dSeX4lBafM7iqUPQvM= github.com/ipfs/go-cid v0.0.2/go.mod h1:GHWU/WuQdMPmIosc4Yn1bcCT7dSeX4lBafM7iqUPQvM= github.com/ipfs/go-cid v0.0.3/go.mod h1:GHWU/WuQdMPmIosc4Yn1bcCT7dSeX4lBafM7iqUPQvM= @@ -709,8 +706,6 @@ github.com/nats-io/nkeys v0.1.3/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxzi github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c= github.com/nikkolasg/hexjson v0.0.0-20181101101858-78e39397e00c h1:5bFTChQxSKNwy8ALwOebjekYExl9HTT9urdawqC95tA= github.com/nikkolasg/hexjson v0.0.0-20181101101858-78e39397e00c/go.mod h1:7qN3Y0BvzRUf4LofcoJplQL10lsFDb4PYlePTVwrP28= -github.com/oasisprotocol/ed25519 v0.0.0-20200528083105-55566edd6df0 h1:qmiMZ6ZhkeQZkV/Huajj+QBAu1jX0HTGsOwi+eXTGY8= -github.com/oasisprotocol/ed25519 v0.0.0-20200528083105-55566edd6df0/go.mod h1:IZbb50w3AB72BVobEF6qG93NNSrTw/V2QlboxqSu3Xw= github.com/oasisprotocol/ed25519 v0.0.0-20200819094954-65138ca6ec7c h1:/Ydlzrdta1Gegs20RPue2Tpkmh28dMjkwqDyikptskA= github.com/oasisprotocol/ed25519 v0.0.0-20200819094954-65138ca6ec7c/go.mod h1:IZbb50w3AB72BVobEF6qG93NNSrTw/V2QlboxqSu3Xw= github.com/oklog/oklog v0.3.2/go.mod h1:FCV+B7mhrz4o+ueLpx+KqkyXRGMWOYEvfiXtdGtbWGs= @@ -744,8 +739,6 @@ github.com/openzipkin/zipkin-go v0.1.6/go.mod h1:QgAqvLzwWbR/WpD4A3cGpPtJrZXNIiJ github.com/openzipkin/zipkin-go v0.2.1/go.mod h1:NaW6tEwdmWMaCDZzg8sh+IBNOxHMPnhQw8ySjnjRyN4= github.com/openzipkin/zipkin-go v0.2.2/go.mod h1:NaW6tEwdmWMaCDZzg8sh+IBNOxHMPnhQw8ySjnjRyN4= github.com/pact-foundation/pact-go v1.0.4/go.mod h1:uExwJY4kCzNPcHRj+hCR/HBbOOIwwtUjcrb0b5/5kLM= -github.com/panjf2000/ants/v2 v2.4.1 h1:7RtUqj5lGOw0WnZhSKDZ2zzJhaX5490ZW1sUolRXCxY= -github.com/panjf2000/ants/v2 v2.4.1/go.mod h1:f6F0NZVFsGCp5A7QW/Zj/m92atWwOkY0OIhFxRNFr4A= github.com/panjf2000/ants/v2 v2.4.3 h1:wHghL17YKFanB62QjPQ9o+DuM4q7WrQ7zAhoX8+eBXU= github.com/panjf2000/ants/v2 v2.4.3/go.mod h1:f6F0NZVFsGCp5A7QW/Zj/m92atWwOkY0OIhFxRNFr4A= github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= @@ -1014,8 +1007,6 @@ golang.org/x/crypto v0.0.0-20200221231518-2aa609cf4a9d/go.mod h1:LzIPMQfyMNhhGPh golang.org/x/crypto v0.0.0-20200423211502-4bdfaf469ed5/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200510223506-06a226fb4e37/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200604202706-70a84ac30bf9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20200709230013-948cd5f35899 h1:DZhuSZLsGlFL4CmhA8BcRA0mnthyA/nZ00AqCUo7vHg= -golang.org/x/crypto v0.0.0-20200709230013-948cd5f35899/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897 h1:pLI5jrR7OSLijeIDcmRxNmw2api+jEfxLoykJVice/E= golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= @@ -1033,10 +1024,9 @@ golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHl golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f h1:J5lckAjkw6qYlOZNj90mLYNTEKDvWeuc1yieZ8qUzUE= -golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= golang.org/x/lint v0.0.0-20200130185559-910be7a94367 h1:0IiAsCRByjO2QjX7ZPkw5oU9x+n1YqRL802rjC0c3Aw= golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/lint v0.0.0-20200302205851-738671d3881b h1:Wh+f8QHJXR411sJR8/vRBTZ7YapZaRvUcLFFJhusH0k= golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= @@ -1184,7 +1174,6 @@ golang.org/x/tools v0.0.0-20191029190741-b9c20aec41a5/go.mod h1:b+2E5dAYhXwXZwtn golang.org/x/tools v0.0.0-20191108193012-7d206e10da11/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191112195655-aa38f8e97acc/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191216052735-49a3e744a425/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200103221440-774c71fcf114/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= diff --git a/packages/drng/collective_beacon_payload.go b/packages/drng/collective_beacon_payload.go index a0ed1f829468000514de7b3490b363ec3987397f..2480c9362c4b8b6827feed0d3a6bd453f1c28fcb 100644 --- a/packages/drng/collective_beacon_payload.go +++ b/packages/drng/collective_beacon_payload.go @@ -128,8 +128,8 @@ func (p *CollectiveBeaconPayload) Bytes() (bytes []byte) { } // marshal fields - payloadLength := HeaderLength + marshalutil.UINT64_SIZE + SignatureSize*2 + PublicKeySize - marshalUtil := marshalutil.New(marshalutil.UINT32_SIZE + marshalutil.UINT32_SIZE + payloadLength) + payloadLength := HeaderLength + marshalutil.Uint64Size + SignatureSize*2 + PublicKeySize + marshalUtil := marshalutil.New(marshalutil.Uint32Size + marshalutil.Uint32Size + payloadLength) marshalUtil.WriteUint32(uint32(payloadLength)) marshalUtil.WriteBytes(PayloadType.Bytes()) marshalUtil.WriteBytes(p.Header.Bytes()) diff --git a/plugins/networkdelay/object.go b/plugins/networkdelay/object.go index 951d72e60993705c4b3c462c68a2621a34cac722..f7538da0675c02fb609bb7158ae32bb233269c45 100644 --- a/plugins/networkdelay/object.go +++ b/plugins/networkdelay/object.go @@ -105,9 +105,9 @@ func (o *Object) Bytes() (bytes []byte) { return } - objectLength := len(o.id) + marshalutil.INT64_SIZE + objectLength := len(o.id) + marshalutil.Int64Size // initialize helper - marshalUtil := marshalutil.New(marshalutil.UINT32_SIZE + marshalutil.UINT32_SIZE + objectLength) + marshalUtil := marshalutil.New(marshalutil.Uint32Size + marshalutil.Uint32Size + objectLength) // marshal the payload specific information marshalUtil.WriteUint32(uint32(objectLength)) diff --git a/plugins/syncbeacon/payload/payload.go b/plugins/syncbeacon/payload/payload.go index 18fcbb38a2d39ce3da89551527f158c53a479cd0..ff48f5d098506a88242f4e455fd236b9f4bd7245 100644 --- a/plugins/syncbeacon/payload/payload.go +++ b/plugins/syncbeacon/payload/payload.go @@ -79,7 +79,7 @@ func (p *Payload) SentTime() int64 { func (p *Payload) Bytes() []byte { // initialize helper marshalUtil := marshalutil.New() - objectLength := marshalutil.INT64_SIZE + objectLength := marshalutil.Int64Size // marshal the p specific information marshalUtil.WriteUint32(uint32(objectLength))