kordlib / Lavalink.kt

Coroutine based client for Lavalink (Kotlin and Java)
MIT License
36 stars 10 forks source link

Fix load balancing heuristics, make load balancer public #36

Closed freyacodes closed 10 months ago

freyacodes commented 10 months ago

This fixes the load balancing heuristics that were broken in https://github.com/kordlib/Lavalink.kt/commit/e6e6d8595822d1a2def0a4aea674cb516ef83f07#diff-d4a68aa4a4bea23eaf6314456bacd52dd00b3c0e9b7275669c3ac627eb6deefb

It also makes the load balancer publicly accessible, such that the functioning of the load balancer can be observed. This is a feature that I relied upon in my old Lavalink-Client. I fixed the heuristics on top of the first changes, and I was not inclined to go out of my way to separate them.

P.S: While cherry-picking, the master branch tripped me up. May want to delete that.