Skip to content

Commit

Permalink
Update API to version 0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
tillrohrmann committed Mar 19, 2024
1 parent a03639e commit 40b3a11
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions template/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import * as restate from "@restatedev/restate-sdk";
//
// The routes and handlers in the service
const router = restate.router({
hello: async (ctx: restate.RpcContext, name: string) => {
hello: async (ctx: restate.Context, name: string) => {
return `Hello ${name}!`;
}
});
Expand All @@ -25,7 +25,7 @@ export const service: restate.ServiceApi<typeof router> = { path: "myservice" }

// Create the Restate server to accept requests
restate
.createServer()
.endpoint()
.bindRouter(service.path, router)
.listen(9080);

Expand Down
2 changes: 1 addition & 1 deletion template_grpc/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class MyExampleService implements ExampleService {

// Create the Restate server to accept requests to the service(s)
restate
.createServer()
.endpoint()
.bindService({
service: "ExampleService", // public name of the service, must match the name in the .proto definition
instance: new MyExampleService(), // the instance of the implementation
Expand Down

0 comments on commit 40b3a11

Please sign in to comment.