Skip to content

Commit a3e9b1f

Browse files
committed
fix linter errors
1 parent 7d0f53b commit a3e9b1f

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

aoe/bybit/infrastructure/infrastructure.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ class Infrastructure
7676
Qty>,
7777
public PlaceOrderInterface<MemoryPoolThreadSafety>,
7878
public CancelOrderInterface<MemoryPoolThreadSafety> {
79-
static constexpr bool kFoundInfrastructure_ = true;
80-
static constexpr bool kNotFoundInfrastructure_ = false;
79+
static constexpr bool kFoundInfrastructure = true;
80+
static constexpr bool kNotFoundInfrastructure = false;
8181

8282
boost::asio::io_context ioc_trade_; // may be need ioc_trade = ioc
8383
boost::asio::executor_work_guard<boost::asio::io_context::executor_type>
@@ -169,10 +169,10 @@ class Infrastructure
169169
auto it = contexts_.find(trading_pair);
170170
if (it == contexts_.end() || !it->second ||
171171
!it->second->best_bid_notifier) {
172-
return kNotFoundInfrastructure_;
172+
return kNotFoundInfrastructure;
173173
}
174174
it->second->best_bid_notifier->SetCallback(cb);
175-
return kFoundInfrastructure_;
175+
return kFoundInfrastructure;
176176
}
177177

178178
bool SetCallbackOnBestAskChange(
@@ -184,10 +184,10 @@ class Infrastructure
184184
auto it = contexts_.find(trading_pair);
185185
if (it == contexts_.end() || !it->second ||
186186
!it->second->best_ask_notifier) {
187-
return kNotFoundInfrastructure_;
187+
return kNotFoundInfrastructure;
188188
}
189189
it->second->best_ask_notifier->SetCallback(cb);
190-
return kFoundInfrastructure_;
190+
return kFoundInfrastructure;
191191
}
192192
void PlaceOrder(
193193
boost::intrusive_ptr<aos::RequestInterface<MemoryPoolThreadSafety>>
@@ -257,8 +257,8 @@ class Infrastructure
257257
Price, Qty>,
258258
public PlaceOrderInterface<MemoryPoolThreadSafety>,
259259
public CancelOrderInterface<MemoryPoolThreadSafety> {
260-
static constexpr bool kFoundInfrastructure_ = true;
261-
static constexpr bool kNotFoundInfrastructure_ = false;
260+
static constexpr bool kFoundInfrastructure = true;
261+
static constexpr bool kNotFoundInfrastructure = false;
262262

263263
boost::asio::io_context ioc_trade_; // may be need ioc_trade = ioc
264264
boost::asio::executor_work_guard<boost::asio::io_context::executor_type>
@@ -359,10 +359,10 @@ class Infrastructure
359359
auto it = contexts_.find(trading_pair);
360360
if (it == contexts_.end() || !it->second ||
361361
!it->second->best_bid_notifier) {
362-
return kNotFoundInfrastructure_;
362+
return kNotFoundInfrastructure;
363363
}
364364
it->second->best_bid_notifier->SetCallback(cb);
365-
return kFoundInfrastructure_;
365+
return kFoundInfrastructure;
366366
}
367367

368368
bool SetCallbackOnBestAskChange(
@@ -371,10 +371,10 @@ class Infrastructure
371371
auto it = contexts_.find(trading_pair);
372372
if (it == contexts_.end() || !it->second ||
373373
!it->second->best_ask_notifier) {
374-
return kNotFoundInfrastructure_;
374+
return kNotFoundInfrastructure;
375375
}
376376
it->second->best_ask_notifier->SetCallback(cb);
377-
return kFoundInfrastructure_;
377+
return kFoundInfrastructure;
378378
}
379379
void PlaceOrder(
380380
boost::intrusive_ptr<aos::RequestInterface<MemoryPoolThreadSafety>>

aos/strategy_engine/i_strategy_engine.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ template <typename HashT, typename T>
66
class StrategyEngineInterface : public SetPriceWhenEnterInterface<HashT, T> {
77
public:
88
virtual void AddData(const HashT& has_asset, const T& value) = 0;
9-
virtual ~StrategyEngineInterface() = default;
9+
~StrategyEngineInterface() override = default;
1010
};
1111
}; // namespace aos

0 commit comments

Comments
 (0)