From 3fa0e3caefffeabad383fc0d153b4b6b328abd88 Mon Sep 17 00:00:00 2001 From: Denis Kirillov Date: Fri, 16 Sep 2022 15:47:16 +0300 Subject: [PATCH] [#200] Update docs Signed-off-by: Denis Kirillov --- CHANGELOG.md | 3 +++ downloader/download.go | 1 + uploader/upload.go | 1 + 3 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 28f7d25..954fdf5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,9 @@ This document outlines major changes between releases. ## [Unreleased] +### Added +- Config reloading on SIGHUP (#200) + ## [0.24.0] - 2022-09-14 ### Fixed diff --git a/downloader/download.go b/downloader/download.go index 97ef42f..bb48b51 100644 --- a/downloader/download.go +++ b/downloader/download.go @@ -259,6 +259,7 @@ type Downloader struct { settings *Settings } +// Settings stores reloading parameters, so it has to provide atomic getters and setters. type Settings struct { zipCompression atomic.Bool } diff --git a/uploader/upload.go b/uploader/upload.go index d2cabb4..2db7c34 100644 --- a/uploader/upload.go +++ b/uploader/upload.go @@ -43,6 +43,7 @@ type epochDurations struct { blockPerEpoch uint64 } +// Settings stores reloading parameters, so it has to provide atomic getters and setters. type Settings struct { defaultTimestamp atomic.Bool }