Skip to content

Commit

Permalink
fix: print_anonymous_usage_data_disclaimer at wrong place (#2167)
Browse files Browse the repository at this point in the history
  • Loading branch information
killme2008 authored Aug 14, 2023
1 parent 55b5df9 commit b353bd2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/common/greptimedb-telemetry/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,11 @@ impl GreptimeDBTelemetryTask {
}

pub fn start(&self, runtime: Runtime) -> Result<()> {
print_anonymous_usage_data_disclaimer();

match self {
GreptimeDBTelemetryTask::Enable(task) => task.start(runtime),
GreptimeDBTelemetryTask::Enable(task) => {
print_anonymous_usage_data_disclaimer();
task.start(runtime)
}
GreptimeDBTelemetryTask::Disable => Ok(()),
}
}
Expand Down

0 comments on commit b353bd2

Please sign in to comment.