Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

examples: close listener, connection and stream in echo client and server #4188

Merged
merged 3 commits into from
Dec 9, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix: add close func in example
Signed-off-by: rfyiamcool <[email protected]>
  • Loading branch information
rfyiamcool committed Dec 6, 2023
commit b4e7641599be45367336ec7b4fa9a9a2b2c15860
1 change: 0 additions & 1 deletion example/echo/echo.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ func echoServer() error {
if err != nil {
return err
}
defer conn.CloseWithError(0, "")

stream, err := conn.AcceptStream(context.Background())
if err != nil {
Expand Down
Loading