From 1dad15698845d370e998f7cc5feb8aece3fab58f Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Wed, 16 Sep 2026 17:05:17 -0400 Subject: refactor: remove dead code, consolidate save/error handling, add lint gate --- internal/net/conn.go | 3 +++ internal/net/server.go | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'internal/net') diff --git a/internal/net/conn.go b/internal/net/conn.go index a7c53ec..2a250d8 100644 --- a/internal/net/conn.go +++ b/internal/net/conn.go @@ -1,3 +1,6 @@ +// Package net implements the server transports: telnet, telnet-over-TLS, +// and the WebSocket bridge for the web client, plus the shared Session type. +// It must not be confused with the standard library net package. package net import ( diff --git a/internal/net/server.go b/internal/net/server.go index dd65f6e..eed5486 100644 --- a/internal/net/server.go +++ b/internal/net/server.go @@ -146,7 +146,7 @@ const ( closeFlushTimeout = 2 * time.Second ) -// startWriter puts the session into queued mode: writes are enqueued and a +// StartWriter puts the session into queued mode: writes are enqueued and a // dedicated goroutine drains the queue to the network with per-message write // deadlines. The goroutine exits after Close() — draining whatever was // queued first — and closes the transport, so a Close() during shutdown -- cgit v1.2.3