client: refactor boot logic into SetUp method

This method only has heartbeat session population logic for now, so it's
actually a no-op during provisioning. However, there's probably some
value in "mandating" that clients call this shortly after construction,
so we have a chance to run any setup logic that we might need in the
future.

This _feels_ unidiomatic...?
This commit is contained in:
Skip R
2025-12-18 18:28:07 -08:00
parent 2075a4b853
commit 099b464f84
2 changed files with 23 additions and 7 deletions

View File

@@ -84,6 +84,7 @@ func (dl *DiscordTokenLogin) SubmitUserInput(ctx context.Context, input map[stri
connector: dl.connector,
Session: session,
}
client.SetUp(ctx, nil)
err = client.connect(ctx)
if err != nil {
dl.softlyCloseSession()