Skip to content

Commit

Permalink
move const parserSize inside gatherer.go
Browse files Browse the repository at this point in the history
  • Loading branch information
barrettj12 committed Jul 7, 2023
1 parent ce450db commit 822fb3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 2 additions & 0 deletions internals/overlord/logstate/gatherer.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ import (
"github.com/canonical/pebble/internals/servicelog"
)

const parserSize = 4 * 1024

// logGatherer is responsible for collecting service logs from a bunch of
// services, and sending them to its logClient.
// One logGatherer will run per log target. Its loop() method should be run
Expand Down
4 changes: 0 additions & 4 deletions internals/overlord/logstate/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ import (
"github.com/canonical/pebble/internals/servicelog"
)

const (
parserSize = 4 * 1024
)

type LogManager struct {
gatherers map[string]*logGatherer
newGatherer func(*plan.LogTarget) (*logGatherer, error)
Expand Down

0 comments on commit 822fb3e

Please sign in to comment.