Skip to content

Commit

Permalink
Fix tutorial to include sayHelloAgain in the other implementation.
Browse files Browse the repository at this point in the history
Fixes #462
  • Loading branch information
thesamet committed Jan 1, 2023
1 parent b3d6595 commit bac0610
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,13 @@ def sayHelloAgain(request: HelloRequest) =
ZIO.succeed(HelloReply(s"Hello again, ${request.name}"))
```

The example project includes another implementation of this service which you will need to change in order for the project to compile. Open `src/main/scala/zio_grpc/examples/helloworld/GreeterWithDatabase.scala` and add the same method to the `GreeterWithDatabase` class:

```scala
def sayHelloAgain(request: HelloRequest) =
ZIO.succeed(HelloReply(s"Hello again, ${request.name}"))
```

### Update the client

Open `src/main/scala/zio_grpc/examples/helloworld/HelloWorldClient.scala`, and update the definition of the `myAppLogic` method in `GreeterImpl`:
Expand Down

0 comments on commit bac0610

Please sign in to comment.