Exemple #1
0
    def init_db(self):
        params = {
            'bucket': self.ts.bucket,
            'host': self.ts.node,
            'port': 8091,
            'username': self.ts.bucket,
            'password': self.ts.password
        }

        self.cbs = [CBAsyncGen(**params) for _ in range(self.NUM_CONNECTIONS)]
        self.counter = list(range(self.NUM_CONNECTIONS))
Exemple #2
0
 def init_db(self, params):
     self.cbs = [CBAsyncGen(**params) for _ in range(self.NUM_CONNECTIONS)]
     self.counter = range(self.NUM_CONNECTIONS)