Skip to content

Commit 3216f72

Browse files
committed
Cleanup warnings
1 parent ef58504 commit 3216f72

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

ExchangeSharp/API/Exchanges/Bittrex/ExchangeBittrexAPI_WebSocket.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ params string[] marketSymbols
162162
{
163163
marketSymbols = GetMarketSymbolsAsync().Sync().ToArray();
164164
}
165-
async Task innerCallback(string json)
165+
Task innerCallback(string json)
166166
{
167167
#region sample json
168168
/*
@@ -216,6 +216,7 @@ async Task innerCallback(string json)
216216
book.MarketSymbol = ordersUpdates.MarketName;
217217
book.SequenceId = ordersUpdates.Nonce;
218218
callback(book);
219+
return Task.CompletedTask;
219220
}
220221

221222
return new BittrexWebSocketManager().SubscribeToExchangeDeltas(innerCallback, marketSymbols);

ExchangeSharpConsole/Console/ExchangeSharpConsole_Example.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,10 @@ private static void RunTradesWebSocket(Dictionary<string, string> dict)
142142
RunWebSocket(dict, (api) =>
143143
{
144144
symbols = ValidateMarketSymbols(api, symbols);
145-
return api.GetTradesWebSocket(async message =>
145+
return api.GetTradesWebSocket(message =>
146146
{
147147
Console.WriteLine($"{message.Key}: {message.Value}");
148+
return Task.CompletedTask;
148149
}, symbols);
149150
});
150151
}

ExchangeSharpTests/ExchangeTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public void GlobalSymbolTest()
6868
{
6969
try
7070
{
71-
if (api is ExchangeUfoDexAPI || api is ExchangeKrakenAPI || api is ExchangeOKExAPI)
71+
if (api is ExchangeUfoDexAPI || api is ExchangeKrakenAPI || api is ExchangeOKExAPI || api is ExchangeHitBTCAPI)
7272
{
7373
// WIP
7474
continue;

0 commit comments

Comments
 (0)