-
Notifications
You must be signed in to change notification settings - Fork 300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add experimental method to create DO replicas #2824
base: main
Are you sure you want to change the base?
Conversation
6da190e
to
ea2b618
Compare
ea2b618
to
0436dae
Compare
0436dae
to
9e46063
Compare
@@ -3362,4 +3362,8 @@ kj::Promise<void> ActorCacheInterface::waitForBookmark(kj::StringPtr bookmark) { | |||
Error, "This Durable Object's storage back-end does not implement point-in-time recovery."); | |||
} | |||
|
|||
void ActorCacheInterface::ensureReplicas() { | |||
JSG_FAIL_REQUIRE(Error, "This Durable Object's storage back-end does not support replication."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Can you add a comment along the lines of this being intended to be implemented internally
@@ -239,6 +239,8 @@ class ActorCacheInterface: public ActorCacheOps { | |||
virtual kj::Promise<kj::String> getBookmarkForTime(kj::Date timestamp); | |||
virtual kj::Promise<kj::String> onNextSessionRestoreBookmark(kj::StringPtr bookmark); | |||
virtual kj::Promise<void> waitForBookmark(kj::StringPtr bookmark); | |||
|
|||
virtual void ensureReplicas(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given that it's just a throw, consider just inlining the implementation with the throw here. Just keeps things a bit simpler.
No description provided.