nsqio / nsq

A realtime distributed messaging platform
https://nsq.io
MIT License
24.72k stars 2.89k forks source link

chore: cleanup error handling code for Accept #1483

Open andrewvo148 opened 3 months ago

andrewvo148 commented 3 months ago

https://github.com/nsqio/nsq/blob/2127c0a1ce50a66d61d78496033b15ef5cb5e250/internal/protocol/tcp_server.go#L27C4-L35C5

mreiferson commented 2 months ago

Yea, we can probably clean this up now that there's a better standard API, feel free to submit a PR!