dangogh closed pull request #2739: Traffic Monitor formatting - go fmt URL: https://github.com/apache/trafficcontrol/pull/2739
This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/traffic_monitor/cache/astats_test.go b/traffic_monitor/cache/astats_test.go index 67dd8aa6b..b3c1860d2 100644 --- a/traffic_monitor/cache/astats_test.go +++ b/traffic_monitor/cache/astats_test.go @@ -8,9 +8,9 @@ package cache * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -19,7 +19,6 @@ package cache * under the License. */ - import ( "fmt" "io/ioutil" diff --git a/traffic_monitor/datareq/cachestatfilter.go b/traffic_monitor/datareq/cachestatfilter.go index 4fa052379..3ee07618a 100644 --- a/traffic_monitor/datareq/cachestatfilter.go +++ b/traffic_monitor/datareq/cachestatfilter.go @@ -25,8 +25,8 @@ import ( "strconv" "strings" - "github.com/apache/trafficcontrol/traffic_monitor/cache" "github.com/apache/trafficcontrol/lib/go-tc" + "github.com/apache/trafficcontrol/traffic_monitor/cache" ) // CacheStatFilter fulfills the cache.Filter interface, for filtering stats. See the `NewCacheStatFilter` documentation for details on which query parameters are used to filter. diff --git a/traffic_monitor/manager/health.go b/traffic_monitor/manager/health.go index ed5b88f56..fa47fba98 100644 --- a/traffic_monitor/manager/health.go +++ b/traffic_monitor/manager/health.go @@ -23,9 +23,9 @@ import ( "time" "github.com/apache/trafficcontrol/lib/go-log" + "github.com/apache/trafficcontrol/lib/go-tc" "github.com/apache/trafficcontrol/traffic_monitor/cache" "github.com/apache/trafficcontrol/traffic_monitor/config" - "github.com/apache/trafficcontrol/lib/go-tc" "github.com/apache/trafficcontrol/traffic_monitor/health" "github.com/apache/trafficcontrol/traffic_monitor/peer" "github.com/apache/trafficcontrol/traffic_monitor/threadsafe" diff --git a/traffic_monitor/threadsafe/cacheavailablestatus.go b/traffic_monitor/threadsafe/cacheavailablestatus.go index a839994e1..107341d50 100644 --- a/traffic_monitor/threadsafe/cacheavailablestatus.go +++ b/traffic_monitor/threadsafe/cacheavailablestatus.go @@ -20,9 +20,10 @@ package threadsafe */ import ( - "github.com/apache/trafficcontrol/traffic_monitor/cache" - "github.com/apache/trafficcontrol/lib/go-tc" "sync" + + "github.com/apache/trafficcontrol/lib/go-tc" + "github.com/apache/trafficcontrol/traffic_monitor/cache" ) // CacheAvailableStatus wraps a map of cache available statuses to be safe for multiple reader goroutines and one writer. diff --git a/traffic_monitor/threadsafe/cachemaxkbpses.go b/traffic_monitor/threadsafe/cachemaxkbpses.go index ba0487070..8e620b6bc 100644 --- a/traffic_monitor/threadsafe/cachemaxkbpses.go +++ b/traffic_monitor/threadsafe/cachemaxkbpses.go @@ -20,9 +20,10 @@ package threadsafe */ import ( - "github.com/apache/trafficcontrol/traffic_monitor/cache" - "github.com/apache/trafficcontrol/lib/go-tc" "sync" + + "github.com/apache/trafficcontrol/lib/go-tc" + "github.com/apache/trafficcontrol/traffic_monitor/cache" ) // CacheAvailableStatus wraps a map of cache available statuses to be safe for multiple reader goroutines and one writer. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
