Skip to content

Commit

Permalink
errors.Is conversion in maintenance.go
Browse files Browse the repository at this point in the history
Signed-off-by: redwrasse <[email protected]>
  • Loading branch information
redwrasse committed Sep 27, 2024
1 parent 47cad30 commit 46fbf43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/etcdserver/api/v3rpc/maintenance.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ func (ms *maintenanceServer) Snapshot(sr *pb.SnapshotRequest, srv pb.Maintenance
buf := make([]byte, snapshotSendBufferSize)

n, err := io.ReadFull(pr, buf)
if err != nil && err != io.EOF && !errorspkg.Is(err, io.ErrUnexpectedEOF) {
if err != nil && !errorspkg.Is(err, io.EOF) && !errorspkg.Is(err, io.ErrUnexpectedEOF) {
return togRPCError(err)
}
sent += int64(n)
Expand Down

0 comments on commit 46fbf43

Please sign in to comment.