From da25c94484d98677966f424414cc935cd37d4152 Mon Sep 17 00:00:00 2001 From: Philip O'Toole Date: Wed, 25 Mar 2015 19:35:27 -0700 Subject: [PATCH] Move small utility function closer to its use --- server.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/server.go b/server.go index 839355c16f..ea52fd2985 100644 --- a/server.go +++ b/server.go @@ -634,6 +634,13 @@ type dataNodeJSON struct { URL string `json:"url"` } +// copyURL returns a copy of the the URL. +func copyURL(u *url.URL) *url.URL { + other := &url.URL{} + *other = *u + return other +} + // Join creates a new data node in an existing cluster, copies the metastore, // and initializes the ID. func (s *Server) Join(u *url.URL, joinURL *url.URL) error { @@ -3859,13 +3866,6 @@ func (s *Server) convertRowToPoints(measurementName string, row *influxql.Row) ( return points, nil } -// copyURL returns a copy of the the URL. -func copyURL(u *url.URL) *url.URL { - other := &url.URL{} - *other = *u - return other -} - func (s *Server) StartReportingLoop(clusterID uint64) chan struct{} { s.reportStats(clusterID)