Skip to content

Commit 2a95bd6

Browse files
azambranogalbisazambranogalbis-etraidjkralik
authored
Blockwise: Allow transfer via NonConfirmable messages (#548)
*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>
1 parent c7401b9 commit 2a95bd6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

net/blockwise/blockwise.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,9 @@ func newWriteRequestResponse[C Client](cc C, request *pool.Message) *responsewri
270270
req.SetToken(request.Token())
271271
req.ResetOptionsTo(request.Options())
272272
req.SetBody(request.Body())
273+
if request.Type() == message.Confirmable || request.Type() == message.NonConfirmable {
274+
req.SetType(request.Type())
275+
}
273276
return responsewriter.New(req, cc, request.Options()...)
274277
}
275278

0 commit comments

Comments
 (0)