Skip to content

Commit 112e35a

Browse files
committed
Review update
1 parent c015204 commit 112e35a

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

client.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,9 @@ func (c Client) createRetryDir() error {
3838

3939
// Save []string to file.
4040
func (c Client) saveSliceToRetry(metrics []string, backend string) error {
41-
//
4241
// If size of file is bigger, than max size we will remove lines from this file,
4342
// and will call this function again to check result and write to the file.
4443
// Recursion:)
45-
//
4644

4745
c.Lc.lg.Printf("Resaving %d metrics back to the retry-file", len(metrics))
4846

@@ -71,11 +69,9 @@ func (c Client) saveSliceToRetry(metrics []string, backend string) error {
7169

7270
// Save part of entire content of channel to file.
7371
func (c Client) saveChannelToRetry(ch chan string, size int, backend string) {
74-
//
7572
// If size of file is bigger, than max size we will remove lines from this file,
7673
// and will call this function again to check result and write to the file.
7774
// Recursion:)
78-
//
7975

8076
// We save all metrics from channels on the program ending
8177
// In this case on the size=0 the whole channel is saved
@@ -217,10 +213,8 @@ func (c Client) runBackend(backend string) {
217213
c.saveChannelToRetry(monChannel, bufSize, backend)
218214
}
219215

220-
//
221216
// Main Buffer. We read it completely but send only part which fits in mainBufferSize
222217
// Rests we save
223-
//
224218

225219
bufSize = len(mainChannel)
226220

config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ func (conf *Config) GenerateLocalConfig() (*LocalConfig, error) {
257257
hostname = strings.Replace(hostname, ".", "_", -1)
258258
}
259259

260-
// There are 3 metrics per backend
260+
// There are 4 metrics per backend in client and 3 in server stats
261261
MonitorMetrics := 3 + len(carbonAddrsTCP)*4
262262

263263
return &LocalConfig{

0 commit comments

Comments
 (0)