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 }