Katrix / AckCord

A Discord library for Scala using Akka
https://ackcord.katsstuff.net/
MIT License
113 stars 15 forks source link

Basic backoff configuration for shard restarting #50

Closed Yomanz closed 3 years ago

Yomanz commented 3 years ago

Allows you to define a function that changes how shard restarts are determined.

Not sure why scalafmt went so mad

Katrix commented 3 years ago

Seems fine, but also think Scalafmt didn't pick up the configuration file. Can you fix the extra formatting?

Yomanz commented 3 years ago

oops

Katrix commented 3 years ago

Welp, nope, I'm just stupid, sorry. Seems I didn't push some stuff from when I updated Scalafmt

Yomanz commented 3 years ago

Do you want me to revert that reverted commit then?

Yomanz commented 3 years ago

Also, I wasn't sure how to do it, but it would be cool if we could pass the number of retries into the restartBackoff function so the end-user doesn't have to track it and possibly make it exponential by default.