diff options
author | Stan Hu <stanhu@gmail.com> | 2020-04-07 02:17:19 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2020-04-07 02:17:19 +0300 |
commit | 9d01d90e8522834f29ade7276bb248f9360340c4 (patch) | |
tree | 830133a038bd5d4d14cea17b4a953a986b1f7313 | |
parent | 1aca342f790509147604e0adce09e9b7dd667905 (diff) |
Fix go fmt errors
As seen in https://gitlab.com/gitlab-org/gitaly/-/jobs/500735957,
`make format` was necessary.
-rw-r--r-- | internal/praefect/datastore/datastore.go | 4 | ||||
-rw-r--r-- | internal/praefect/metrics/prometheus.go | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/internal/praefect/datastore/datastore.go b/internal/praefect/datastore/datastore.go index 0e5f14654..4b71fa55b 100644 --- a/internal/praefect/datastore/datastore.go +++ b/internal/praefect/datastore/datastore.go @@ -100,8 +100,8 @@ type ReplJob struct { RelativePath string // source for replication State JobState Attempts int - Params Params // additional information required to run the job - CorrelationID string // from original request + Params Params // additional information required to run the job + CorrelationID string // from original request CreatedAt time.Time // when has the job been created? } diff --git a/internal/praefect/metrics/prometheus.go b/internal/praefect/metrics/prometheus.go index 47bdc1626..19cb24eb9 100644 --- a/internal/praefect/metrics/prometheus.go +++ b/internal/praefect/metrics/prometheus.go @@ -22,7 +22,6 @@ func RegisterReplicationDelay(conf promconfig.Config) (metrics.HistogramVec, err return replicationDelay, prometheus.Register(replicationDelay) } - // RegisterReplicationLatency creates and registers a prometheus histogram // to observe replication latency times func RegisterReplicationLatency(conf promconfig.Config) (metrics.HistogramVec, error) { |