Shutdown on leader election loss

This commit is contained in:
Alex Vest
2022-10-04 16:41:34 +01:00
parent 16079bd1d4
commit 919f75bb62
5 changed files with 37 additions and 43 deletions
+1 -1
View File
@@ -6,6 +6,6 @@ import (
// ResourceHandler handles the creation and update of resources
type ResourceHandler interface {
Handle(isLeader bool) error
Handle() error
GetConfig() (util.Config, string)
}