Skip to content

Commit c7f4d75

Browse files
committed
lint
1 parent 4f734da commit c7f4d75

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

x/ref/examples/echo/echo/echo.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)