mirror of
https://github.com/prometheus/statsd_exporter.git
synced 2025-02-20 01:16:17 +00:00
Buffer signals channel
Signed-off-by: Wangchong Zhou <fffonion@gmail.com>
This commit is contained in:
parent
383ee9bd3b
commit
47b5ef9be0
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -260,7 +260,7 @@ func main() {
|
||||||
}
|
}
|
||||||
exporter := NewExporter(mapper)
|
exporter := NewExporter(mapper)
|
||||||
|
|
||||||
signals := make(chan os.Signal)
|
signals := make(chan os.Signal, 1)
|
||||||
signal.Notify(signals, os.Interrupt, syscall.SIGTERM)
|
signal.Notify(signals, os.Interrupt, syscall.SIGTERM)
|
||||||
|
|
||||||
go exporter.Listen(events)
|
go exporter.Listen(events)
|
||||||
|
|
Loading…
Reference in a new issue