aboutsummaryrefslogtreecommitdiff
path: root/network/protocol/pktline
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-29 03:39:18 +0000
committerGravatar Runxi Yu2026-03-29 03:39:18 +0000
commit7a93df9ab78c3d0823248d0fb051b0cc85edd85d (patch)
treeaba32ae47d6030e573b691e1a7aa314ff0ec4a72 /network/protocol/pktline
parentnetwork/protocol/v0v1/server: Add contract labels (diff)
signatureNo signature
network/protocol: Add more contract labels
Diffstat (limited to 'network/protocol/pktline')
-rw-r--r--network/protocol/pktline/chunk_writer.go2
-rw-r--r--network/protocol/pktline/encoder.go2
2 files changed, 4 insertions, 0 deletions
diff --git a/network/protocol/pktline/chunk_writer.go b/network/protocol/pktline/chunk_writer.go
index 3e1a8c36..5c637700 100644
--- a/network/protocol/pktline/chunk_writer.go
+++ b/network/protocol/pktline/chunk_writer.go
@@ -9,6 +9,8 @@ type ChunkWriter struct {
}
// NewChunkWriter creates a chunking adapter over enc.
+//
+// Labels: Deps-Borrowed.
func NewChunkWriter(enc *Encoder) *ChunkWriter {
return &ChunkWriter{enc: enc}
}
diff --git a/network/protocol/pktline/encoder.go b/network/protocol/pktline/encoder.go
index 4c7dcd6e..dac3293e 100644
--- a/network/protocol/pktline/encoder.go
+++ b/network/protocol/pktline/encoder.go
@@ -16,6 +16,8 @@ type Encoder struct {
}
// NewEncoder creates an encoder over w.
+//
+// Labels: Deps-Borrowed.
func NewEncoder(w iowrap.WriteFlusher) *Encoder {
return &Encoder{
w: w,