diff --git a/pkg/network/payload/payload.go b/pkg/network/payload/payload.go index 0c295b5d1..a761de2e2 100644 --- a/pkg/network/payload/payload.go +++ b/pkg/network/payload/payload.go @@ -12,12 +12,12 @@ type NullPayload struct { } // NewNullPayload returns zero-sized stub payload. -func NewNullPayload() *NullPayload { - return &NullPayload{} +func NewNullPayload() NullPayload { + return NullPayload{} } // DecodeBinary implements Serializable interface. -func (p *NullPayload) DecodeBinary(r *io.BinReader) {} +func (p NullPayload) DecodeBinary(r *io.BinReader) {} // EncodeBinary implements Serializable interface. -func (p *NullPayload) EncodeBinary(w *io.BinWriter) {} +func (p NullPayload) EncodeBinary(w *io.BinWriter) {}