Skip to content

Commit e971c5c

Browse files
[kraken] fix check to allow integers
1 parent 624c31c commit e971c5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xchange-stream-kraken/src/main/java/info/bitrich/xchangestream/kraken/KrakenStreamingService.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ protected String getChannelNameFromMessage(JsonNode message) throws IOException
238238
}
239239

240240
if (message.isArray()) {
241-
if (message.get(0).isLong()) {
241+
if (message.get(0).isInt() || message.get(0).isLong()) {
242242
LOG.trace("Taking channelName from ID from first field LONG).");
243243
long channelId = message.get(0).asLong();
244244
return channels.getOrDefault(channelId, String.valueOf(channelId));

0 commit comments

Comments
 (0)