Skip to content

Commit d36e467

Browse files
committed
rename factory
1 parent 751c7e9 commit d36e467

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cmd/syslog-agent/app/syslog_agent.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func NewSyslogAgent(
5656
cfg Config,
5757
m Metrics,
5858
l *log.Logger,
59-
factory syslog.AppLogEmitterFactory,
59+
appLogEmitterFactory syslog.AppLogEmitterFactory,
6060
) *SyslogAgent {
6161
ingressTLSConfig, err := loggregator.NewIngressTLSConfig(
6262
cfg.GRPC.CAFile,
@@ -88,7 +88,7 @@ func NewSyslogAgent(
8888
timeoutwaitgroup.New(time.Minute),
8989
writerFactory,
9090
m,
91-
syslog.WithAppLogEmitter(factory.NewAppLogEmitter(logClient, "syslog_agent")),
91+
syslog.WithAppLogEmitter(appLogEmitterFactory.NewAppLogEmitter(logClient, "syslog_agent")),
9292
)
9393

9494
var cacheClient *cache.CacheClient
@@ -109,7 +109,7 @@ func NewSyslogAgent(
109109
m,
110110
cfg.WarnOnInvalidDrains,
111111
l,
112-
factory.NewAppLogEmitter(logClient, "syslog_agent"),
112+
appLogEmitterFactory.NewAppLogEmitter(logClient, "syslog_agent"),
113113
)
114114
cupsFetcher = bindings.NewDrainParamParser(cupsFetcher, cfg.DefaultDrainMetadata)
115115
}

0 commit comments

Comments
 (0)