Skip to content
This repository has been archived by the owner on May 10, 2022. It is now read-only.

Commit

Permalink
fix equals
Browse files Browse the repository at this point in the history
  • Loading branch information
foreverneverer committed May 27, 2019
1 parent 028ccc8 commit f7c307f
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,11 @@ public boolean equals(Object options) {
if (options instanceof ClientOptions) {
ClientOptions clientOptions = (ClientOptions) options;
return this.metaServers.equals(clientOptions.metaServers)
&& this.operationTimeout == clientOptions.operationTimeout
&& this.operationTimeout.toMillis() == clientOptions.operationTimeout.toMillis()
&& this.asyncWorkers == clientOptions.asyncWorkers
&& this.enablePerfCounter == clientOptions.enablePerfCounter
&& this.falconPushInterval == clientOptions.falconPushInterval;
&& this.falconPerfCounterTags.equals(clientOptions.falconPerfCounterTags)
&& this.falconPushInterval.toMillis() == clientOptions.falconPushInterval.toMillis();
}
return false;
}
Expand Down

0 comments on commit f7c307f

Please sign in to comment.