File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ func main() {
7474 if len (httpAddr ) > 0 {
7575 wg .Add (1 )
7676 go func () {
77- runHttpServer (ctx , httpAddr , client )
77+ runHTTPServer (ctx , httpAddr , client )
7878 wg .Done ()
7979 }()
8080 }
@@ -120,7 +120,7 @@ func main() {
120120 }()
121121 select {
122122 case <- done :
123- time .Sleep (1 )
123+ time .Sleep (time . Second * 2 )
124124 case <- signals .ShutdownOnSignals (ctx ):
125125 }
126126}
@@ -129,7 +129,7 @@ func main() {
129129// <addr>/call and <addr>/call?forward-to=<server>
130130// will issue RPCs to the echo server.
131131// <addr>/quit will cause the client to exit gracefully.
132- func runHttpServer (ctx * context.T , addr string , client echo.EchoServiceClientStub ) {
132+ func runHTTPServer (ctx * context.T , addr string , client echo.EchoServiceClientStub ) {
133133 xrayHandler := xray .Handler (
134134 xray .NewFixedSegmentNamer ("http.echo.client" ),
135135 http .HandlerFunc (func (w http.ResponseWriter , r * http.Request ) {
You can’t perform that action at this time.
0 commit comments