mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
16 lines
277 B
Go
16 lines
277 B
Go
package dqlite
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/canonical/go-dqlite/client"
|
|
"github.com/sirupsen/logrus"
|
|
)
|
|
|
|
func (d *DQLite) Reset(ctx context.Context) error {
|
|
logrus.Infof("Resetting cluster to single master")
|
|
return d.node.Recover([]client.NodeInfo{
|
|
d.NodeInfo,
|
|
})
|
|
}
|