chore: use gofumpt for code formatting
This commit is contained in:
@@ -37,7 +37,8 @@ type Loop struct {
|
||||
const defaultBackoffTime = 10 * time.Second
|
||||
|
||||
func NewLoop(settings settings.DNS,
|
||||
client *http.Client, logger Logger) (loop *Loop, err error) {
|
||||
client *http.Client, logger Logger,
|
||||
) (loop *Loop, err error) {
|
||||
start := make(chan struct{})
|
||||
running := make(chan models.LoopStatus)
|
||||
stop := make(chan struct{})
|
||||
|
||||
@@ -16,13 +16,15 @@ import (
|
||||
func (l *Loop) GetSettings() (settings settings.DNS) { return l.state.GetSettings() }
|
||||
|
||||
func (l *Loop) SetSettings(ctx context.Context, settings settings.DNS) (
|
||||
outcome string) {
|
||||
outcome string,
|
||||
) {
|
||||
return l.state.SetSettings(ctx, settings)
|
||||
}
|
||||
|
||||
func buildDoTSettings(settings settings.DNS,
|
||||
filter *mapfilter.Filter, logger Logger) (
|
||||
dotSettings dot.ServerSettings, err error) {
|
||||
dotSettings dot.ServerSettings, err error,
|
||||
) {
|
||||
var middlewares []dot.Middleware
|
||||
|
||||
if *settings.DoT.Caching {
|
||||
|
||||
@@ -15,7 +15,8 @@ func (s *State) GetSettings() (settings settings.DNS) {
|
||||
}
|
||||
|
||||
func (s *State) SetSettings(ctx context.Context, settings settings.DNS) (
|
||||
outcome string) {
|
||||
outcome string,
|
||||
) {
|
||||
s.settingsMu.Lock()
|
||||
|
||||
settingsUnchanged := reflect.DeepEqual(s.settings, settings)
|
||||
|
||||
@@ -10,7 +10,8 @@ import (
|
||||
|
||||
func New(statusApplier StatusApplier,
|
||||
settings settings.DNS,
|
||||
updateTicker chan<- struct{}) *State {
|
||||
updateTicker chan<- struct{},
|
||||
) *State {
|
||||
return &State{
|
||||
statusApplier: statusApplier,
|
||||
settings: settings,
|
||||
|
||||
@@ -11,6 +11,7 @@ func (l *Loop) GetStatus() (status models.LoopStatus) {
|
||||
}
|
||||
|
||||
func (l *Loop) ApplyStatus(ctx context.Context, status models.LoopStatus) (
|
||||
outcome string, err error) {
|
||||
outcome string, err error,
|
||||
) {
|
||||
return l.statusManager.ApplyStatus(ctx, status)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user