NewDefaultConfig returns value, not pointer; Nested configs are defined as value

This commit is contained in:
DarthSim
2025-09-06 01:38:32 +03:00
parent 4789810b18
commit ac03563506
27 changed files with 133 additions and 128 deletions

View File

@@ -38,11 +38,11 @@ func (s *ProcessingTestSuite) SetupSuite() {
logrus.SetOutput(io.Discard)
trc := transport.NewDefaultConfig()
tr, err := transport.New(trc)
tr, err := transport.New(&trc)
s.Require().NoError(err)
fc := fetcher.NewDefaultConfig()
f, err := fetcher.New(tr, fc)
f, err := fetcher.New(tr, &fc)
s.Require().NoError(err)
s.idf = imagedata.NewFactory(f)