From 7c362b44e79f3ed292dce2cd68de969233997757 Mon Sep 17 00:00:00 2001
From: Andrey Strochuk <a.strochuk@picodata.io>
Date: Thu, 17 Oct 2024 11:54:34 +0300
Subject: [PATCH] feat: add timeout to wait_masters_connect() call

---
 sbroad-core/src/core-router.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sbroad-core/src/core-router.lua b/sbroad-core/src/core-router.lua
index 9c85a76c81..183475ad58 100644
--- a/sbroad-core/src/core-router.lua
+++ b/sbroad-core/src/core-router.lua
@@ -214,7 +214,7 @@ local function multi_storage_dql(uuid_to_args, func, handler, opts, tier_name)
     -- netbox requests return box.NULL instead of nils.
 
     -- Wait for all masters to connect.
-    vrs.wait_masters_connect(replicasets)
+    vrs.wait_masters_connect(replicasets, timeout)
     timeout = deadline - fiber.clock()
 
 
-- 
GitLab