Skip to content

Commit 2b5a2ee

Browse files
committed
fix getting port; tag 0.2.3
1 parent e28d34a commit 2b5a2ee

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "calcit_wss"
3-
version = "0.2.2"
3+
version = "0.2.3"
44
authors = ["jiyinyiyong <[email protected]>"]
55
edition = "2021"
66

@@ -13,6 +13,6 @@ crate-type = ["dylib"] # Creates dynamic lib
1313
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1414

1515
[dependencies]
16-
cirru_edn = "0.6.2"
16+
cirru_edn = "0.6.3"
1717
lazy_static = "1.4.0"
1818
simple-websockets = "0.1.6"

calcit.cirru

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ pub fn wss_serve(
2121
_finish: Box<dyn FnOnce()>,
2222
) -> Result<Edn, String> {
2323
let port = match args.first() {
24-
Some(Edn::Map(m)) => match m.get("port") {
24+
Some(Edn::Map(m)) => match m.tag_get("port") {
2525
Some(Edn::Number(n)) => n.floor().round() as u16,
2626
Some(a) => return Err(format!("Unknown port: {}", a)),
2727
None => 9001,

0 commit comments

Comments
 (0)