Skip to content

Commit

Permalink
fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Lavergne authored and nerdling committed Mar 13, 2020
1 parent fb0a690 commit e4840ef
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/migrant/engine.py
Expand Up @@ -7,8 +7,6 @@
import multiprocessing

log = logging.getLogger(__name__)
logger = multiprocessing.log_to_stderr()
logger.setLevel(logging.WARNING)


from migrant import exceptions
Expand Down Expand Up @@ -44,7 +42,7 @@ def _update(self, db, target_id=None):
def update(self, target_id=None):
target_id = self.pick_rev_id(target_id)
conns = self.backend.generate_connections()
with Pool() as pool:
with multiprocessing.Pool() as pool:
pool.imap_unordered(self._update, ((db, target_id) for db in self.initialized_dbs(conns)))

def test(self, target_id=None):
Expand Down

0 comments on commit e4840ef

Please sign in to comment.