Skip to content

Commit

Permalink
chore: rm debug
Browse files Browse the repository at this point in the history
  • Loading branch information
fzyzcjy committed Apr 9, 2024
1 parent 8fd1087 commit 8bef071
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 7 deletions.
4 changes: 0 additions & 4 deletions frb_dart/lib/src/stream/stream_sink.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,14 @@ _State<T> _setup<T>(BaseCodec<T, dynamic, dynamic> codec) {

final Stream<T> rawStream = () async* {
try {
print('hi RustStreamSink async* start');
await for (final raw in receivePort) {
print('hi RustStreamSink recv raw=$raw');
try {
yield codec.decodeObject(raw);
} on CloseStreamException {
print('hi RustStreamSink recv see CloseStreamException');
break;
}
}
} finally {
print('hi RustStreamSink finally');
receivePort.close();
}
}();
Expand Down
1 change: 0 additions & 1 deletion frb_example/pure_dart/rust/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 frb_example/pure_dart/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ crate-type = ["cdylib"]

[dependencies]
anyhow = { version = "1.0.64", features = ["backtrace"] }
flutter_rust_bridge = { path = "../../../frb_rust", features = ["chrono", "uuid", "backtrace", "log"] }
flutter_rust_bridge = { path = "../../../frb_rust", features = ["chrono", "uuid", "backtrace"] }
log = "0.4.19"
backtrace = "0.3.68"
chrono = "0.4.26"
Expand Down
1 change: 0 additions & 1 deletion frb_rust/src/generalized_isolate/web/channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ impl Channel {
}

pub fn post(&self, msg: impl IntoDart) -> bool {
log::info!("hi Channel.post");
self.port
.post_message(&msg.into_dart())
.map_err(|err| {
Expand Down

0 comments on commit 8bef071

Please sign in to comment.