def schedule_block_for_broadcast_sync(block_id: str, time: int = 0) -> None: """Schedule a certain block to be checked by the broadcast processor (sync) Args: block_id: block_id to schedule time: unix timestamp to re-schedule for checking (0 means ASAP) """ redis.zadd_sync(IN_FLIGHT_KEY, {block_id: time})
def test_zadd(self): redis.zadd_sync("banana", "banana") redis.redis_client.zadd.assert_called_once_with("banana", "banana", ch=False, incr=False, nx=False, xx=False)