WIP: Cleanup

This commit is contained in:
jdl
2025-08-26 16:57:46 +02:00
parent 31c48fbafd
commit 302d27692b
22 changed files with 29 additions and 2199 deletions

View File

@@ -2,18 +2,9 @@ package peer
import (
"net/netip"
"sync/atomic"
"time"
"unsafe"
)
// TODO: Initialize w/ startup counter.
var traceIDCounter uint64 = uint64(time.Now().Unix()<<30) + 1
func newTraceID() uint64 {
return atomic.AddUint64(&traceIDCounter, 1)
}
// ----------------------------------------------------------------------------
type binWriter struct {