mirror of https://github.com/tailscale/tailscale/
net/dns: remove Cleanup manager parameter.
It's only use to skip some optional initialization during cleanup, but that work is very minor anyway, and about to change drastically. Signed-off-by: David Anderson <danderson@tailscale.com>pull/1644/head
parent
cf361bb9b1
commit
95470c3448
@ -1,17 +0,0 @@
|
|||||||
// Copyright (c) 2020 Tailscale Inc & AUTHORS All rights reserved.
|
|
||||||
// Use of this source code is governed by a BSD-style
|
|
||||||
// license that can be found in the LICENSE file.
|
|
||||||
|
|
||||||
package dns
|
|
||||||
|
|
||||||
type noopManager struct{}
|
|
||||||
|
|
||||||
// Up implements managerImpl.
|
|
||||||
func (m noopManager) Up(Config) error { return nil }
|
|
||||||
|
|
||||||
// Down implements managerImpl.
|
|
||||||
func (m noopManager) Down() error { return nil }
|
|
||||||
|
|
||||||
func newNoopManager(mconfig ManagerConfig) managerImpl {
|
|
||||||
return noopManager{}
|
|
||||||
}
|
|
Loading…
Reference in New Issue