@@ -38,11 +38,9 @@ func (c Client) createRetryDir() error {
3838
3939// Save []string to file.
4040func (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.
7371func (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
0 commit comments