dims / etcd3-gateway

This repository is now read-only. Please see https://opendev.org/openstack/etcd3gw for the new location for this code.
https://opendev.org/openstack/etcd3gw
Apache License 2.0
10 stars 20 forks source link

time.clock was removed in Python 3.8 #35

Closed tirkarthi closed 4 years ago

tirkarthi commented 4 years ago
etcd3gw/tests/test_etcd3gw.py
347:        lock = self.client.lock(id='xyz-%s' % time.clock(), ttl=60)

etcd3gw/examples/etcd.py
57:    lock = Lock('xyz-%s' % time.clock(), ttl=10000, client=client)

Ref : https://github.com/python/cpython/pull/13270

dims commented 4 years ago

@tirkarthi could you help fix this with a PR?

tirkarthi commented 4 years ago

I have raised #36 . I feel time.perf_counter to be more appropriate choice.