55
// use the NewFileBasedClientWithMetrics instead if you want to collect metrics.
56
// This method is retained mainly for backward compatibility.
57
>
func NewFileBasedClient(config *FileBasedClientConfig, logger log.Logger, doneCh <-chan any) (*FileBasedClient, error) {
file_based_client.go
58
>
return NewFileBasedClientWithMetrics(config, logger, doneCh, metrics.NoopMetricsHandler)
59
>
}
60
61
func NewFileBasedClientWithMetrics(config *FileBasedClientConfig, logger log.Logger, doneCh <-chan any, metricsHandler metrics.Handler) (*FileBasedClient, error) {