Skip to content

Commit 4c136ff

Browse files
pzhan9facebook-github-bot
authored andcommitted
Add Sequencers to actor Instance (#1299)
Summary: We want to move sequence assignment to the client side, and actor Instance is a good place for that, since: 1. we can get it through `context::Actor`; 2. there is ongoing effort to deprecate `cap::CanSend` with `context::Actor`. so `context::Actor` will be accessible in client's message sending callsites. This diff: 1. adds a `Struct Sequencers` which encapsulate the assignment logic. 2. adds a `fn seq_send` method to `ActorRef` show how it is used by the client. Differential Revision: D82983004
1 parent 6d22ad1 commit 4c136ff

File tree

4 files changed

+331
-79
lines changed

4 files changed

+331
-79
lines changed

hyperactor/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ tokio-stream = { version = "0.1.17", features = ["fs", "io-util", "net", "signal
8484
tokio-util = { version = "0.7.15", features = ["full"] }
8585
tracing = { version = "0.1.41", features = ["attributes", "valuable"] }
8686
unicode-ident = "1.0.12"
87+
uuid = { version = "1.2", features = ["serde", "v4", "v5", "v6", "v7", "v8"] }
8788

8889
[dev-dependencies]
8990
buck-resources = "1"

0 commit comments

Comments
 (0)