From 6d5084c7c5b9956accb8857ffcba3a52005b9b6f Mon Sep 17 00:00:00 2001 From: XiaoYi-byte <72679319+XiaoYi-byte@users.noreply.github.com> Date: Mon, 15 Apr 2024 15:09:42 +0800 Subject: [PATCH] change "echo.NewServer(handler{})" to "echoservice.NewServer(new(handler))" in message_type (#1056) --- content/en/docs/kitex/Tutorials/basic-feature/message_type.md | 2 +- content/zh/docs/kitex/Tutorials/basic-feature/message_type.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/content/en/docs/kitex/Tutorials/basic-feature/message_type.md b/content/en/docs/kitex/Tutorials/basic-feature/message_type.md index 3439b3c403..8a88a6a23a 100644 --- a/content/en/docs/kitex/Tutorials/basic-feature/message_type.md +++ b/content/en/docs/kitex/Tutorials/basic-feature/message_type.md @@ -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() diff --git a/content/zh/docs/kitex/Tutorials/basic-feature/message_type.md b/content/zh/docs/kitex/Tutorials/basic-feature/message_type.md index 2d170bf605..b8d2d1559a 100644 --- a/content/zh/docs/kitex/Tutorials/basic-feature/message_type.md +++ b/content/zh/docs/kitex/Tutorials/basic-feature/message_type.md @@ -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()