Skip to content

Commit

Permalink
fix export.
Browse files Browse the repository at this point in the history
  • Loading branch information
3AceShowHand committed Feb 25, 2022
1 parent c0662a6 commit 56648ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cdc/sink/producer/kafka/kafka.go
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ func NewKafkaSaramaProducer(ctx context.Context, topic string, config *Config, o
id: changefeedID,
role: role,

metricsMonitor: NewSaramaMetricsMonitor(cfg.MetricRegistry,
metricsMonitor: newSaramaMetricsMonitor(cfg.MetricRegistry,
util.CaptureAddrFromCtx(ctx), changefeedID, admin),
}
go func() {
Expand Down
2 changes: 1 addition & 1 deletion cdc/sink/producer/kafka/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ func (sm *saramaMetricsMonitor) collectBrokerMetrics() error {
return nil
}

func NewSaramaMetricsMonitor(registry metrics.Registry, captureAddr, changefeedID string, admin kafka.ClusterAdminClient) *saramaMetricsMonitor {
func newSaramaMetricsMonitor(registry metrics.Registry, captureAddr, changefeedID string, admin kafka.ClusterAdminClient) *saramaMetricsMonitor {
return &saramaMetricsMonitor{
captureAddr: captureAddr,
changefeedID: changefeedID,
Expand Down

0 comments on commit 56648ce

Please sign in to comment.