Move small utility function closer to its use

pull/2078/head
Philip O'Toole 2015-03-25 19:35:27 -07:00
parent 6de597a226
commit da25c94484
1 changed files with 7 additions and 7 deletions

View File

@ -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)