Skip to content

Commit

Permalink
Add update_config request handler
Browse files Browse the repository at this point in the history
Remove `reload_config` request handler.

Close: #112
  • Loading branch information
danbi2990 committed Nov 28, 2024
1 parent 881ef20 commit 0a12183
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ file is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and
this project adheres to [Semantic
Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Added

- Added `update_config` request handler.

### Removed

- Removed `reload_config` request handler.

## [0.5.0] - 2024-11-26

### Changed
Expand Down Expand Up @@ -135,6 +145,7 @@ Versioning](https://semver.org/spec/v2.0.0.html).
- Send the generated `time series` to `giganto`'s ingest.
- Save the model's id and the last time the timeseries was sent to a file.

[Unreleased]: https://github.com/aicers/crusher/compare/0.5.0...main
[0.5.0]: https://github.com/aicers/crusher/compare/0.4.1...0.5.0
[0.4.1]: https://github.com/aicers/crusher/compare/0.4.0...0.4.1
[0.4.0]: https://github.com/aicers/crusher/compare/0.3.2...0.4.0
Expand Down
4 changes: 2 additions & 2 deletions src/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,8 @@ impl review_protocol::request::Handler for RequestHandler {
Ok(())
}

async fn reload_config(&mut self) -> Result<(), String> {
info!("start reloading configuration");
async fn update_config(&mut self) -> Result<(), String> {
info!("Updating configuration");
self.config_reload.notify_one();
Ok(())
}
Expand Down

0 comments on commit 0a12183

Please sign in to comment.