Merge pull request #289 from rafalste/fix_duplicated_func
Fix duplicated __eq__ functions
This commit is contained in:
commit
80d71fabea
@ -114,14 +114,6 @@ class FlushParametersAlru:
|
|||||||
alru_params.wake_up_time = Time(seconds=20)
|
alru_params.wake_up_time = Time(seconds=20)
|
||||||
return alru_params
|
return alru_params
|
||||||
|
|
||||||
def __eq__(self, other):
|
|
||||||
return (
|
|
||||||
self.wake_up_time == other.wake_up_time
|
|
||||||
and self.staleness_time == other.staleness_time
|
|
||||||
and self.flush_max_buffers == other.flush_max_buffers
|
|
||||||
and self.activity_threshold == other.activity_threshold
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
class FlushParametersAcp:
|
class FlushParametersAcp:
|
||||||
def __init__(self, flush_max_buffers=None, wake_up_time=None):
|
def __init__(self, flush_max_buffers=None, wake_up_time=None):
|
||||||
@ -141,11 +133,6 @@ class FlushParametersAcp:
|
|||||||
acp_params.wake_up_time = Time(milliseconds=10)
|
acp_params.wake_up_time = Time(milliseconds=10)
|
||||||
return acp_params
|
return acp_params
|
||||||
|
|
||||||
def __eq__(self, other):
|
|
||||||
return (
|
|
||||||
self.wake_up_time == other.wake_up_time
|
|
||||||
and self.flush_max_buffers == other.flush_max_buffers
|
|
||||||
)
|
|
||||||
|
|
||||||
class SeqCutOffParameters:
|
class SeqCutOffParameters:
|
||||||
def __init__(self, policy=None, threshold=None):
|
def __init__(self, policy=None, threshold=None):
|
||||||
|
Loading…
Reference in New Issue
Block a user