Skip to content

Commit

Permalink
Merge pull request #494 from TheCharlatan/permissionCheckTerminateSyncer
Browse files Browse the repository at this point in the history
Syncer: Only farcaster is allowed to terminate
  • Loading branch information
zkao authored Jun 17, 2022
2 parents 31b541d + 83cf816 commit 68a4584
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/syncerd/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ impl Runtime {
notify_cli = Some((Some(source), resp));
}

(Request::Terminate, _) => {
(Request::Terminate, ServiceId::Farcasterd) => {
// terminate all runtimes
info!("Received terminate on {}", self.identity());
std::process::exit(0);
Expand Down

0 comments on commit 68a4584

Please sign in to comment.