From ab76069dcac536f82a07b0a20184c331e7f3bacb Mon Sep 17 00:00:00 2001 From: nixargh Date: Sun, 28 Feb 2021 21:50:40 +0300 Subject: [PATCH] v1.2.1 reduce wait time when no metrics are in the queue --- CHANGELOG.md | 4 ++++ main.go | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d74c0a5..14f8083 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## [1.2.1] +### Fxied +- Wait time when no metrics are in the queue from **10** to **5** milliseconds. + ## [1.2.0] ### Changed - The size of a pack from **1000** to **10000**. Default packs limit adjusted as well. diff --git a/main.go b/main.go index 419348c..68de9f9 100644 --- a/main.go +++ b/main.go @@ -20,7 +20,7 @@ import ( // "github.com/pkg/profile" ) -var version string = "1.2.0" +var version string = "1.2.1" var clog, slog, rlog, tlog, stlog *log.Entry var hostname string @@ -203,7 +203,7 @@ func runSender(host string, port int, outputChan chan *Metric, TLS bool, ignoreC metrics[i] = metric default: metrics[i] = emptyMetric - time.Sleep(10 * time.Millisecond) + time.Sleep(5 * time.Millisecond) } }