mirror of
https://github.com/ceph/s3-tests.git
synced 2024-12-01 03:49:17 +00:00
RandomContentFile.start_time is never used, remove.
This commit is contained in:
parent
832b297cec
commit
a9c47e4951
1 changed files with 1 additions and 2 deletions
|
@ -16,7 +16,7 @@ class RandomContentFile(object):
|
||||||
|
|
||||||
# Boto likes to seek once more after it's done reading, so we need to save the last chunks/seek value.
|
# Boto likes to seek once more after it's done reading, so we need to save the last chunks/seek value.
|
||||||
self.last_chunks = self.chunks = None
|
self.last_chunks = self.chunks = None
|
||||||
self.last_seek = self.start_time = None
|
self.last_seek = None
|
||||||
|
|
||||||
# Let seek initialize the rest of it, rather than dup code
|
# Let seek initialize the rest of it, rather than dup code
|
||||||
self.seek(0)
|
self.seek(0)
|
||||||
|
@ -35,7 +35,6 @@ class RandomContentFile(object):
|
||||||
self.digest = None
|
self.digest = None
|
||||||
|
|
||||||
# Save the last seek time as our start time, and the last chunks
|
# Save the last seek time as our start time, and the last chunks
|
||||||
self.start_time = self.last_seek
|
|
||||||
self.last_chunks = self.chunks
|
self.last_chunks = self.chunks
|
||||||
# Before emptying.
|
# Before emptying.
|
||||||
self.last_seek = time.time()
|
self.last_seek = time.time()
|
||||||
|
|
Loading…
Reference in a new issue