bugfix : return valur from subscribe
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
ycc 2024-04-24 20:12:03 +02:00
parent 428eda0ab7
commit 2e2ebad364

View File

@ -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