Skip to content

Commit

Permalink
Blockwise: Allow transfer via NonConfirmable messages (#548)
Browse files Browse the repository at this point in the history
*Blockwise: Allow transfer via NonConfirmable messages 

Ensured the request type is correctly set during write operations, enhancing reliability and consistency in data handling.


---------

Co-authored-by: Alberto Zambrano <azambrano.etraid@grupoetra.com>
Co-authored-by: Jozef Kralik <jojo.lwin@gmail.com>
  • Loading branch information
3 people committed May 2, 2024
1 parent c7401b9 commit 2a95bd6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions net/blockwise/blockwise.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,9 @@ func newWriteRequestResponse[C Client](cc C, request *pool.Message) *responsewri
req.SetToken(request.Token())
req.ResetOptionsTo(request.Options())
req.SetBody(request.Body())
if request.Type() == message.Confirmable || request.Type() == message.NonConfirmable {
req.SetType(request.Type())
}
return responsewriter.New(req, cc, request.Options()...)
}

Expand Down

0 comments on commit 2a95bd6

Please sign in to comment.