Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
Signed-off-by: Bugen Zhao <[email protected]>
  • Loading branch information
BugenZhao committed Jun 25, 2024
1 parent a562042 commit 121b989
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/src/system_param/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ use super::reader::SystemParamsReader;
use crate::util::tracing::layer::toggle_otel_layer;

/// Node-independent handler for system parameter changes.
///
/// Currently, it is only used to enable or disable the distributed tracing layer.
#[derive(Debug)]
pub struct CommonHandler;

Expand All @@ -34,9 +32,11 @@ impl CommonHandler {

/// Handle the change of system parameters.
pub fn handle_change(&self, diff: &SystemParamsDiff) {
// Toggle the distributed tracing layer.
if let Some(enabled) = diff.enable_tracing {
toggle_otel_layer(enabled);
}
// Refresh the license key.
if let Some(key) = diff.license_key.as_ref() {
LicenseManager::get().refresh(key);
}
Expand Down

0 comments on commit 121b989

Please sign in to comment.