From e7e559aeb743f7f44226c1eb598c61040a5484f7 Mon Sep 17 00:00:00 2001 From: Ehsan Noureddin Moosa Date: Sat, 12 Feb 2022 19:10:33 +0400 Subject: [PATCH] fix not setting default decoder --- std/bundle/fasthttp/bundle.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/std/bundle/fasthttp/bundle.go b/std/bundle/fasthttp/bundle.go index 501b6416..fa21c097 100644 --- a/std/bundle/fasthttp/bundle.go +++ b/std/bundle/fasthttp/bundle.go @@ -98,7 +98,7 @@ func (r *bundle) Register(svc ronykit.Service) { continue } decoder, ok := contract.Query(queryDecoder).(DecoderFunc) - if !ok { + if !ok || decoder == nil { decoder = reflectDecoder(ronykit.CreateMessageFactory(contract.Input())) }