Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
ringsaturn committed Aug 21, 2023
1 parent 69d1e1c commit b8eea93
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@
Build with [`tidwall/redcon.rs`](https://github.com/tidwall/redcon.rs) and
[`ringsaturn/tzf-rs`](https://github.com/ringsaturn/tzf-rs).

Install(only cargo is supported by now):
## Install

### Via `cargo``

```bash
cargo install redizone
```

## Usage

```console
$ redis-cli -p 6380
127.0.0.1:6380> get_tz 116.3883 39.9289
Expand Down
2 changes: 0 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ fn main() {
}
let lat = lat_result.unwrap();
conn.write_string(db.get_tz_name(lng, lat));
return;
}
"get_tzs" => {
if args.len() != 3 {
Expand All @@ -50,7 +49,6 @@ fn main() {
for tz in tzs {
conn.write_bulk(tz.as_bytes());
}
return;
}
_ => conn.write_error("ERR unknown command"),
}
Expand Down

0 comments on commit b8eea93

Please sign in to comment.