-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove error state from ClientConn (#27)
Currently method errors are stored in ClientConn.lastError and requires callers of ClientConn.readResponse to check this field after each call. This is error prone as it hides the fact that readResponse can fail. This change removes the ClientConn.lastError field and instead make ClientConn.readResponse return an error along with the segment. Calling code is updated accordingly.
- Loading branch information
Bjørn
authored
Mar 8, 2021
1 parent
c2adff6
commit e7da5bb
Showing
1 changed file
with
12 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters