Skip to content

Commit

Permalink
Address feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
gvdongen committed Nov 27, 2024
1 parent 06b7a0d commit 72d5e03
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
1 change: 0 additions & 1 deletion templates/python/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ async def greet(ctx: Context, req: GreetingRequest) -> Greeting:
await ctx.sleep(timedelta(seconds=1))
await ctx.run("send reminder", lambda: send_reminder(greeting_id))

ctx.ge
# Respond to caller
return Greeting(message=f"You said hi to {req.name}!")

Expand Down
13 changes: 6 additions & 7 deletions tutorials/tour-of-restate-rust/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ mod ticket_object;
pub mod auxiliary;

use restate_sdk::prelude::*;
use crate::cart_object::CartObject;
use crate::checkout_service::CheckoutService;
use crate::ticket_object::TicketObject;

#[tokio::main]
async fn main() {
Expand All @@ -13,13 +16,9 @@ async fn main() {

HttpServer::new(
Endpoint::builder()
.bind(cart_object::CartObject::serve(cart_object::CartObjectImpl))
.bind(checkout_service::CheckoutService::serve(
checkout_service::CheckoutServiceImpl,
))
.bind(ticket_object::TicketObject::serve(
ticket_object::TicketObjectImpl,
))
.bind(cart_object::CartObjectImpl.serve())
.bind(checkout_service::CheckoutServiceImpl.serve())
.bind(ticket_object::TicketObjectImpl.serve())
.build(),
)
.listen_and_serve("0.0.0.0:9080".parse().unwrap())
Expand Down

0 comments on commit 72d5e03

Please sign in to comment.