add video hash

This commit is contained in:
george2hu 2024-03-21 10:30:22 -07:00
parent 3c4e78e6b7
commit 9068506927

View file

@ -75,6 +75,8 @@ end
function _M.balance(self)
local key = util.generate_var_value(self.hash_by)
if key == "":
key = str(random.randint(0, 1000000))
local subset_id = self.instance:find(key)
local endpoints = self.subsets[subset_id]
local endpoint = endpoints[math.random(#endpoints)]