Remove unused exported methods
parent
ad2d33f859
commit
6c149b31ef
|
@ -49,7 +49,6 @@ type Service struct {
|
|||
Logger *log.Logger
|
||||
|
||||
wg sync.WaitGroup
|
||||
err chan error
|
||||
conn *net.UDPConn
|
||||
batcher *tsdb.PointBatcher
|
||||
typesdb gollectd.Types
|
||||
|
@ -70,7 +69,6 @@ func NewService(c Config) *Service {
|
|||
Config: c.WithDefaults(),
|
||||
|
||||
Logger: log.New(os.Stderr, "[collectd] ", log.LstdFlags),
|
||||
err: make(chan error),
|
||||
stats: &Statistics{},
|
||||
defaultTags: models.StatisticTags{"bind": c.BindAddress},
|
||||
}
|
||||
|
@ -276,9 +274,6 @@ func (s *Service) SetTypes(types string) (err error) {
|
|||
return
|
||||
}
|
||||
|
||||
// Err returns a channel for fatal errors that occur on go routines.
|
||||
func (s *Service) Err() chan error { return s.err }
|
||||
|
||||
// Addr returns the listener's address. Returns nil if listener is closed.
|
||||
func (s *Service) Addr() net.Addr {
|
||||
return s.conn.LocalAddr()
|
||||
|
|
|
@ -49,7 +49,6 @@ type Service struct {
|
|||
mu sync.Mutex
|
||||
wg sync.WaitGroup
|
||||
done chan struct{}
|
||||
err chan error
|
||||
tls bool
|
||||
cert string
|
||||
|
||||
|
@ -85,7 +84,6 @@ func NewService(c Config) (*Service, error) {
|
|||
s := &Service{
|
||||
tls: d.TLSEnabled,
|
||||
cert: d.Certificate,
|
||||
err: make(chan error),
|
||||
BindAddress: d.BindAddress,
|
||||
Database: d.Database,
|
||||
RetentionPolicy: d.RetentionPolicy,
|
||||
|
|
Loading…
Reference in New Issue