// update pulls the metrics and publishes them to the specified system.
update pulls the metrics and publishes them to the specified system.
// update pulls the metrics and publishes them to the specified system .
func (p *Publish) update() {
	data, err := p.collector.Collect()
	if err != nil {
		p.log.Println(err)
		return
	}
	for _, pub := range p.publisher {
		pub(data)
	}
}
func ( p * Publish ) update ( ) { data , err := p . collector . Collect ( ) if err != nil { p . log . Println ( err ) return } for _ , pub := range p . publisher { pub ( data ) } }
update pulls the metrics and publishes them to the specified system.
update pulls the metrics and publishes them to the specified system .