File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 2323 List ,
2424 Optional ,
2525)
26- from uuid import uuid4
2726
2827from nats import errors
2928# Default Pending Limits of Subscriptions
3029from nats .aio .msg import Msg
3130
31+ # Use uuid_utils if available, otherwise use the standard library
32+ try :
33+ from uuid_utils import uuid4
34+ except ImportError :
35+ from uuid import uuid4
36+
3237if TYPE_CHECKING :
3338 from nats .js import JetStreamContext
3439
Original file line number Diff line number Diff line change 88import tempfile
99import time
1010import unittest
11- import uuid
1211from hashlib import sha256
1312
1413import nats
2726except ImportError :
2827 parse_email = None
2928
29+ try :
30+ import uuid_utils as uuid
31+ except ImportError :
32+ import uuid
3033
3134class PublishTest (SingleJetStreamServerTestCase ):
3235
You can’t perform that action at this time.
0 commit comments