From 95e5a88404083597340fd76d9e83707f45103bf9 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 29 Mar 2026 03:46:47 +0000 Subject: network/protocol: Constructors get Life-Parent too --- network/protocol/sideband64k/chunk_writer.go | 2 +- network/protocol/sideband64k/decoder.go | 2 +- network/protocol/sideband64k/encoder.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'network/protocol/sideband64k') diff --git a/network/protocol/sideband64k/chunk_writer.go b/network/protocol/sideband64k/chunk_writer.go index fb9d8060..a1a0ec8c 100644 --- a/network/protocol/sideband64k/chunk_writer.go +++ b/network/protocol/sideband64k/chunk_writer.go @@ -13,7 +13,7 @@ type ChunkWriter struct { // NewChunkWriter creates a chunking adapter over enc for one band. // -// Labels: Deps-Borrowed. +// Labels: Deps-Borrowed, Life-Parent. func NewChunkWriter(enc *Encoder, band Band) *ChunkWriter { return &ChunkWriter{enc: enc, band: band} } diff --git a/network/protocol/sideband64k/decoder.go b/network/protocol/sideband64k/decoder.go index d1549d98..6fc48cd8 100644 --- a/network/protocol/sideband64k/decoder.go +++ b/network/protocol/sideband64k/decoder.go @@ -29,7 +29,7 @@ type Decoder struct { // NewDecoder creates a decoder over r. // -// Labels: Deps-Borrowed. +// Labels: Deps-Borrowed, Life-Parent. func NewDecoder(r io.Reader, opts ReadOptions) *Decoder { d := &Decoder{ dec: pktline.NewDecoder(r, pktline.ReadOptions{}), diff --git a/network/protocol/sideband64k/encoder.go b/network/protocol/sideband64k/encoder.go index c29ad1bb..0c6ea090 100644 --- a/network/protocol/sideband64k/encoder.go +++ b/network/protocol/sideband64k/encoder.go @@ -17,7 +17,7 @@ type Encoder struct { // NewEncoder creates an encoder over w. // -// Labels: Deps-Borrowed. +// Labels: Deps-Borrowed, Life-Parent. func NewEncoder(w iowrap.WriteFlusher) *Encoder { return &Encoder{ enc: pktline.NewEncoder(w), -- cgit v1.3.1-10-gc9f91