From 2e2ebad3643ef0e6db8c581c418b0fbf8483a532 Mon Sep 17 00:00:00 2001 From: ycc Date: Wed, 24 Apr 2024 20:12:03 +0200 Subject: [PATCH] bugfix : return valur from subscribe --- server/router.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/router.go b/server/router.go index c3398d0..cdd13c1 100644 --- a/server/router.go +++ b/server/router.go @@ -59,7 +59,10 @@ func (r *RedisRouter) Route(msg *meowlib.ToServerMessage) (*meowlib.FromServerMe } if msg.Timeout > 0 { // set timeout for the lookup - r.subscribe(msg, int(msg.Timeout)) + from_server, err = r.subscribe(msg, int(msg.Timeout)) + if err != nil { + return nil, err + } } } // manage Matriochka