From 2939b39777d1c5300cbba08db95076eeb65af603 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@henrietta.com.pl> Date: Mon, 22 Feb 2021 16:02:08 +0100 Subject: [PATCH] fix a bug for SequentialIssuer --- CHANGELOG.md | 2 ++ satella/__init__.py | 2 +- satella/coding/concurrent/id_allocator.py | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3ac80570..a377372c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1 +1,3 @@ # v2.14.43 + +* bug fixed for `SequentialIssuer` diff --git a/satella/__init__.py b/satella/__init__.py index 765b3fee..6d124c8e 100644 --- a/satella/__init__.py +++ b/satella/__init__.py @@ -1 +1 @@ -__version__ = '2.14.43a1' +__version__ = '2.14.43a2' diff --git a/satella/coding/concurrent/id_allocator.py b/satella/coding/concurrent/id_allocator.py index e395976f..6750a67a 100644 --- a/satella/coding/concurrent/id_allocator.py +++ b/satella/coding/concurrent/id_allocator.py @@ -14,7 +14,7 @@ class SequentialIssuer(Monitor): def __init__(self, start: int = 0): super().__init__() - self.start = 0 + self.start = start @Monitor.synchronized def issue(self) -> int: -- GitLab