Skip to content

Commit

Permalink
fix log
Browse files Browse the repository at this point in the history
  • Loading branch information
RedKinda committed Nov 22, 2023
1 parent 3011336 commit 4003378
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion coerce/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ readme = "README.md"
repository = "https://github.com/leonhartley/coerce-rs"

[features]
default = []
default = ["full"]

full = [
"remote",
Expand Down
7 changes: 6 additions & 1 deletion coerce/src/actor/message/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,12 @@ where
Some(sender) => sender,
None => {
trace!("no result consumer, message handling complete");
oneshot::channel().0
let ch = oneshot::channel();
tokio::spawn(async move {
// this is to ensure we don't get the "failed to send result" error when no actual sender is present
let _ = ch.1.await;
});
ch.0
}
};
actor
Expand Down
2 changes: 1 addition & 1 deletion providers/persistence/coerce-redis/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ cluster = [
]

[dependencies]
coerce = { version = "0.8.10", features = ["persistence"] }
coerce = { path="../../../coerce", features = ["persistence"] }
async-trait = { version = "0.1.64" }
redis = { version = "0.23.0", features = ["tokio-comp"] }
tokio = { version = "1.28.1", features = ["full"] }
Expand Down

0 comments on commit 4003378

Please sign in to comment.