-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
Description
Overview
Currently, the Spooler is self-referential internally. The WriterFactory creates a new fileWriter, which is tracked by the currentWriter field in Spooler.
Lines 63 to 68 in f171ddd
| type Spooler struct { | |
| config SpoolerConfig | |
| writer writerFactory | |
| batcher *batcher | |
| currentWriter *fileWriter | |
| } |
Scope
Offload the tracking part to WriterFactory itself and rename it to more relevant one, probably Writer.