Skip to content

Commit e021be7

Browse files
committed
Add the missing comment for main method
1 parent 599c577 commit e021be7

File tree

1 file changed

+3
-0
lines changed
  • content/docs/tutorials/basic

1 file changed

+3
-0
lines changed

Diff for: content/docs/tutorials/basic/ruby.md

+3
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,9 @@ s = GRPC::RpcServer.new
273273
s.add_http2_port(port, :this_port_is_insecure)
274274
GRPC.logger.info("... running insecurely on #{port}")
275275
s.handle(ServerImpl.new(feature_db))
276+
# Runs the server with SIGHUP, SIGINT and SIGQUIT signal handlers to
277+
# gracefully shutdown.
278+
# User could also choose to run server via call to run_till_terminated
276279
s.run_till_terminated_or_interrupted([1, 'int', 'SIGQUIT'])
277280
```
278281
As you can see, we build and start our server using a `GRPC::RpcServer`. To do

0 commit comments

Comments
 (0)