Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Continue adding node even if checks fail #33

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import kotlinx.coroutines.launch
import kotlinx.serialization.modules.SerializersModule
import kotlinx.serialization.modules.contextual
import kotlinx.serialization.modules.plus
import kotlin.Exception
import kotlin.collections.set
import kotlin.time.Duration.Companion.seconds

Expand Down Expand Up @@ -146,7 +147,11 @@ public abstract class AbstractLavakord internal constructor(
NodeImpl(serverUri, finalName, password, this)
nodesMap[finalName] = node
launch {
node.check()
try {
node.check()
} catch (e: Exception) {
LOG.warn(e) { "Failed to perform version and plugin checks on ${node.host}. Adding anyways..." }
}
node.connect()
}
}
Expand Down