Skip to content

Commit

Permalink
change "echo.NewServer(handler{})" to "echoservice.NewServer(new(hand…
Browse files Browse the repository at this point in the history
…ler))" in message_type (#1056)
  • Loading branch information
XiaoYi-byte authored Apr 15, 2024
1 parent 04145e6 commit 6d5084c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ func (handler) BidiSideStreaming(stream echo.EchoService_BidiSideStreamingServer
}

func main() {
svr := echo.NewServer(handler{})
svr := echoservice.NewServer(new(handler))

err := svr.Run()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ func (handler) BidiSideStreaming(stream echo.EchoService_BidiSideStreamingServer
}

func main() {
svr := echo.NewServer(handler{})
svr := echoservice.NewServer(new(handler))

err := svr.Run()

Expand Down

0 comments on commit 6d5084c

Please sign in to comment.