Moved HeaderFormatter to an Option for NewEntryFormatter, updated tests (#22116)

This commit is contained in:
Peter Wilson
2023-07-28 17:07:20 +01:00
committed by GitHub
parent 4f7a8fb494
commit 30114d0038
12 changed files with 43 additions and 34 deletions

View File

@@ -119,7 +119,7 @@ func TestFormatJSONx_formatRequest(t *testing.T) {
WithFormat(JSONxFormat.String()),
)
require.NoError(t, err)
f, err := NewEntryFormatter(cfg, tempStaticSalt, nil)
f, err := NewEntryFormatter(cfg, tempStaticSalt)
require.NoError(t, err)
writer := &JSONxWriter{Prefix: tc.Prefix}
formatter, err := NewEntryFormatterWriter(cfg, f, writer)