From b6d6d077d4b28c2dcc644baadcfbc35e44f37a32 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 29 Mar 2026 03:50:31 +0000 Subject: network: Fix labels --- network/protocol/sideband64k/chunk_writer.go | 2 ++ network/protocol/sideband64k/decoder.go | 2 ++ network/protocol/sideband64k/encoder.go | 2 ++ 3 files changed, 6 insertions(+) (limited to 'network/protocol/sideband64k') diff --git a/network/protocol/sideband64k/chunk_writer.go b/network/protocol/sideband64k/chunk_writer.go index a1a0ec8c..78c66edf 100644 --- a/network/protocol/sideband64k/chunk_writer.go +++ b/network/protocol/sideband64k/chunk_writer.go @@ -6,6 +6,8 @@ import "io" // for one fixed band. // // It never writes control packets automatically. +// +// Labels: MT-Unsafe. type ChunkWriter struct { enc *Encoder band Band diff --git a/network/protocol/sideband64k/decoder.go b/network/protocol/sideband64k/decoder.go index 6fc48cd8..e34f5d12 100644 --- a/network/protocol/sideband64k/decoder.go +++ b/network/protocol/sideband64k/decoder.go @@ -17,6 +17,8 @@ type ReadOptions struct { // // It preserves frame boundaries and supports one-frame lookahead via // PeekFrame. +// +// Labels: MT-Unsafe. type Decoder struct { dec *pktline.Decoder maxData int diff --git a/network/protocol/sideband64k/encoder.go b/network/protocol/sideband64k/encoder.go index 0c6ea090..6cdef38a 100644 --- a/network/protocol/sideband64k/encoder.go +++ b/network/protocol/sideband64k/encoder.go @@ -10,6 +10,8 @@ import ( // Encoder writes side-band-64k frames to a flush-capable output transport. // // It writes exactly one frame per method call and does not auto-chunk data. +// +// Labels: MT-Unsafe. type Encoder struct { enc *pktline.Encoder maxData int -- cgit v1.3.1-10-gc9f91