qlog: privatize Encode methods of non-Event structs (#5364)

This commit is contained in:
Marten Seemann
2025-10-09 20:12:19 +08:00
committed by GitHub
parent 03a99447fd
commit 8d1b4811c4
4 changed files with 32 additions and 32 deletions

View File

@@ -16,7 +16,7 @@ func checkHeader(t *testing.T, hdr *PacketHeader, expected map[string]any) {
var buf bytes.Buffer
enc := jsontext.NewEncoder(&buf)
require.NoError(t, hdr.Encode(enc))
require.NoError(t, hdr.encode(enc))
data := buf.Bytes()
require.True(t, json.Valid(data))
checkEncoding(t, data, expected)