Skip to content

Commit 9e2efd0

Browse files
committed
Fix linter in carbon package
1 parent d0b41be commit 9e2efd0

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

carbon/app.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import (
1919
"github.com/lomik/zapwriter"
2020
)
2121

22+
// App is an application object used in main
2223
type App struct {
2324
sync.RWMutex
2425
Config *Config

carbon/config.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import (
1515
)
1616

1717
const (
18+
// MetricEndpointLocal used to send metrics in the carbon-clickhouse itself
1819
MetricEndpointLocal = "local"
1920
)
2021

@@ -192,13 +193,14 @@ func NewConfig() *Config {
192193
return cfg
193194
}
194195

196+
// NewLoggingConfig returns the zapwriter.Config with logging into "/var/log/carbon-clickhouse/carbon-clickhouse.log"
195197
func NewLoggingConfig() zapwriter.Config {
196198
cfg := zapwriter.NewConfig()
197199
cfg.File = "/var/log/carbon-clickhouse/carbon-clickhouse.log"
198200
return cfg
199201
}
200202

201-
// PrintConfig ...
203+
// PrintDefaultConfig ...
202204
func PrintDefaultConfig() error {
203205
cfg := NewConfig()
204206
buf := new(bytes.Buffer)

0 commit comments

Comments
 (0)