Skip to content

Commit

Permalink
solana support - remove debug garbage
Browse files Browse the repository at this point in the history
  • Loading branch information
a10zn8 committed Nov 13, 2023
1 parent 46e3a03 commit e30f097
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ open class WsConnectionImpl(
val status = subscriptionResponses.tryEmitNext(subscription)
if (status.isFailure) {
if (status == Sinks.EmitResult.FAIL_ZERO_SUBSCRIBER) {
log.debug("No subscribers to WS response - ${msg.value?.let { String(it) }}")
log.debug("No subscribers to WS response")
} else {
log.warn("Failed to proceed with a WS message: $status")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ class GenericEgressSubscription(
.shuffled()
.first { matcher.matches(it) } as GenericUpstream

val x = up.getIngressSubscription().get<ByteArray>(topic, params)?.connect(matcher) ?: Flux.empty()
return x
return up.getIngressSubscription().get<ByteArray>(topic, params)?.connect(matcher) ?: Flux.empty()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ class GenericIngressSubscription(val conn: WsSubscriptions) : IngressSubscriptio

@Suppress("UNCHECKED_CAST")
override fun <T> get(topic: String, params: Any?): SubscriptionConnect<T> {
val x = holders.computeIfAbsent(topic to params, { key -> GenericSubscriptionConnect(conn, key.first, key.second) }) as SubscriptionConnect<T>
return x
return holders.computeIfAbsent(topic to params, { key -> GenericSubscriptionConnect(conn, key.first, key.second) }) as SubscriptionConnect<T>
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,7 @@ open class GenericUpstream(
}

fun getIngressSubscription(): IngressSubscription {
val x = connector.getIngressSubscription()
println(x)
return x
return connector.getIngressSubscription()
}

override fun isRunning() = connector.isRunning() && validationSettingsSubscription == null
Expand Down

0 comments on commit e30f097

Please sign in to comment.