Skip to content

Offload tracking current writer to WriterFactory #4

@ritvikos

Description

@ritvikos

Overview

Currently, the Spooler is self-referential internally. The WriterFactory creates a new fileWriter, which is tracked by the currentWriter field in Spooler.

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions