Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add a note on PubsubStream about the assumptions made
  • Loading branch information
dippi committed Jul 4, 2021
commit b51f99f9eb178149d623b827e1c2ac2fffd60c06
2 changes: 2 additions & 0 deletions src/client/pubsub.rs
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,8 @@ impl PubsubConnection {
pub struct PubsubStream {
topic: String,
underlying: PubsubStreamInner,
// Note that, to keep the Future running, PubsubConnectionInner relies on PubsubStream to hold
// a reference to the connection. If that's ever changed remember to adapt the readiness check.
con: PubsubConnection,
}

Expand Down