From d1f90f25d8252d7203f7246ed0cf0200ace3b259 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Tue, 20 Oct 2015 02:05:29 +0200 Subject: using new factory method for graphite --- src/hub/src/spreadspace.org/sfive/s5srvForwardGraphite.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/hub/src/spreadspace.org/sfive/s5srvForwardGraphite.go b/src/hub/src/spreadspace.org/sfive/s5srvForwardGraphite.go index e24142c..802be3c 100644 --- a/src/hub/src/spreadspace.org/sfive/s5srvForwardGraphite.go +++ b/src/hub/src/spreadspace.org/sfive/s5srvForwardGraphite.go @@ -18,11 +18,9 @@ func (self StatsSinkServer) getLastUpdateGraphite(conn *graphite.Graphite) (late } func (self StatsSinkServer) handleForwardingToGraphite(forwardHost string, basePath string) { - client := &graphite.Graphite{Address: forwardHost} - tryResync: for { - err := client.Connect() + client, err := graphite.NewGraphiteFromAddress(forwardHost); if err != nil { s5l.Printf("fwd-graphite: connect returned err: %v", err) time.Sleep(5 * time.Second) -- cgit v1.2.3