Skip to content

Commit

Permalink
Merge pull request #4455 from kethykang/develop
Browse files Browse the repository at this point in the history
chore: fix some typos
  • Loading branch information
chenyukang authored May 12, 2024
2 parents cc11673 + fc5b946 commit d3e65cb
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions ckb-bin/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ pub fn run_app(version: Version) -> Result<(), ExitCode> {
.expect("SubcommandRequiredElseHelp");

#[cfg(not(target_os = "windows"))]
if run_deamon(cmd, matches) {
if run_daemon(cmd, matches) {
return run_app_in_daemon(version, bin_name, cmd, matches);
}

Expand Down Expand Up @@ -155,7 +155,7 @@ fn run_app_inner(
}

#[cfg(not(target_os = "windows"))]
fn run_deamon(cmd: &str, matches: &ArgMatches) -> bool {
fn run_daemon(cmd: &str, matches: &ArgMatches) -> bool {
match cmd {
cli::CMD_RUN => matches.get_flag(cli::ARG_DAEMON),
_ => false,
Expand Down
2 changes: 1 addition & 1 deletion ckb-bin/src/subcommand/daemon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ fn kill_process(pid_file: &PathBuf, name: &str) -> Result<(), ExitCode> {
.parse::<i32>()
.map_err(|_| ExitCode::Failure)?;
eprintln!(
"stopping {} deamon service with pid {} ...",
"stopping {} daemon service with pid {} ...",
name,
pid.to_string().red()
);
Expand Down
16 changes: 8 additions & 8 deletions devtools/init/README.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
# CKB Init Scripts

## Run CKB in deamon mode
## Run CKB in daemon mode

CKB has a builtin deamon mode, command to run CKB in deamon mode(only for Linux/MacOS):
CKB has a builtin daemon mode, command to run CKB in daemon mode(only for Linux/MacOS):

```bash
ckb run --deamon
ckb run --daemon
```

Check deamon satus:
Check daemon status:

```bash
ckb deamon --check
ckb daemon --check
```

Stop deamon process:
Stop daemon process:

```bash
ckb deamon --stop
ckb daemon --stop
```

The deamon mode is only for Linux/MacOS, and the CKB service will not be started automatically after reboot.
The daemon mode is only for Linux/MacOS, and the CKB service will not be started automatically after reboot.

## Init/Service Scripts

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ impl CKBProtocolContext for MockProtocolContext {
false
}
async fn set_notify(&self, _interval: Duration, _token: u64) -> Result<(), Error> {
// NOTE: no need to mock this function, just call protocol.notity(token) in
// NOTE: no need to mock this function, just call protocol.notify(token) in
// test code to test the functionality of the protocol.
unimplemented!()
}
Expand Down

0 comments on commit d3e65cb

Please sign in to comment.