Merge pull request #7728 from influxdata/js-zap-proper-import
Use proper uber-go/zap import pathpull/7729/head
commit
a015996c3e
2
Godeps
2
Godeps
|
@ -16,5 +16,5 @@ github.com/peterh/liner 8975875355a81d612fafb9f5a6037bdcc2d9b073
|
|||
github.com/rakyll/statik e383bbf6b2ec1a2fb8492dfd152d945fb88919b6
|
||||
github.com/retailnext/hllpp 38a7bb71b483e855d35010808143beaf05b67f9d
|
||||
github.com/uber-go/atomic 9e99152552a6ce13fa3b2ce4a9c4fb117cca4506
|
||||
github.com/uber-go/zap fbae0281ffd546fa6d1959fec6075ac5da7fb577
|
||||
go.uber.org/zap 05dadc4e239529c50d6f730c17f0a3aaf35b64fd
|
||||
golang.org/x/crypto 9477e0b78b9ac3d0b03822fd95422e2fe07627cd
|
||||
|
|
|
@ -15,7 +15,7 @@ import (
|
|||
"github.com/influxdata/influxdb/cmd/influxd/help"
|
||||
"github.com/influxdata/influxdb/cmd/influxd/restore"
|
||||
"github.com/influxdata/influxdb/cmd/influxd/run"
|
||||
"github.com/uber-go/zap"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
// These variables are populated via the Go linker.
|
||||
|
|
|
@ -12,7 +12,7 @@ import (
|
|||
"strconv"
|
||||
"time"
|
||||
|
||||
"github.com/uber-go/zap"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
const logo = `
|
||||
|
|
|
@ -31,7 +31,7 @@ import (
|
|||
"github.com/influxdata/influxdb/tcp"
|
||||
"github.com/influxdata/influxdb/tsdb"
|
||||
client "github.com/influxdata/usage-client/v1"
|
||||
"github.com/uber-go/zap"
|
||||
"go.uber.org/zap"
|
||||
// Initialize the engine packages
|
||||
_ "github.com/influxdata/influxdb/tsdb/engine"
|
||||
)
|
||||
|
|
|
@ -12,7 +12,7 @@ import (
|
|||
"github.com/influxdata/influxdb/models"
|
||||
"github.com/influxdata/influxdb/services/meta"
|
||||
"github.com/influxdata/influxdb/tsdb"
|
||||
"github.com/uber-go/zap"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
// The statistics generated by the "write" mdoule
|
||||
|
|
|
@ -16,7 +16,7 @@ import (
|
|||
"github.com/influxdata/influxdb/models"
|
||||
"github.com/influxdata/influxdb/services/meta"
|
||||
"github.com/influxdata/influxdb/tsdb"
|
||||
"github.com/uber-go/zap"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -9,7 +9,7 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/influxdata/influxdb/models"
|
||||
"github.com/uber-go/zap"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/influxdata/influxdb/models"
|
||||
"github.com/uber-go/zap"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -14,7 +14,7 @@ import (
|
|||
"github.com/influxdata/influxdb/models"
|
||||
"github.com/influxdata/influxdb/monitor/diagnostics"
|
||||
"github.com/influxdata/influxdb/services/meta"
|
||||
"github.com/uber-go/zap"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
// Policy constants.
|
||||
|
|
|
@ -10,7 +10,7 @@ import (
|
|||
// Register static assets via statik.
|
||||
_ "github.com/influxdata/influxdb/services/admin/statik"
|
||||
"github.com/rakyll/statik/fs"
|
||||
"github.com/uber-go/zap"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
// Service manages the listener for an admin endpoint.
|
||||
|
|
|
@ -16,7 +16,7 @@ import (
|
|||
"github.com/influxdata/influxdb/models"
|
||||
"github.com/influxdata/influxdb/services/meta"
|
||||
"github.com/influxdata/influxdb/tsdb"
|
||||
"github.com/uber-go/zap"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
// statistics gathered by the collectd service.
|
||||
|
|
|
@ -13,7 +13,7 @@ import (
|
|||
"github.com/influxdata/influxdb/models"
|
||||
"github.com/influxdata/influxdb/services/meta"
|
||||
"github.com/influxdata/influxdb/toml"
|
||||
"github.com/uber-go/zap"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
func TestService_OpenClose(t *testing.T) {
|
||||
|
|
|
@ -11,7 +11,7 @@ import (
|
|||
"github.com/influxdata/influxdb/influxql"
|
||||
"github.com/influxdata/influxdb/models"
|
||||
"github.com/influxdata/influxdb/services/meta"
|
||||
"github.com/uber-go/zap"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -12,7 +12,7 @@ import (
|
|||
"github.com/influxdata/influxdb/influxql"
|
||||
"github.com/influxdata/influxdb/models"
|
||||
"github.com/influxdata/influxdb/services/meta"
|
||||
"github.com/uber-go/zap"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
@ -14,7 +14,7 @@ import (
|
|||
"github.com/influxdata/influxdb/monitor/diagnostics"
|
||||
"github.com/influxdata/influxdb/services/meta"
|
||||
"github.com/influxdata/influxdb/tsdb"
|
||||
"github.com/uber-go/zap"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
const udpBufferSize = 65536
|
||||
|
|
|
@ -13,7 +13,7 @@ import (
|
|||
"github.com/influxdata/influxdb/models"
|
||||
"github.com/influxdata/influxdb/services/meta"
|
||||
"github.com/influxdata/influxdb/toml"
|
||||
"github.com/uber-go/zap"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
func Test_Service_OpenClose(t *testing.T) {
|
||||
|
|
|
@ -27,7 +27,7 @@ import (
|
|||
"github.com/influxdata/influxdb/services/meta"
|
||||
"github.com/influxdata/influxdb/tsdb"
|
||||
"github.com/influxdata/influxdb/uuid"
|
||||
"github.com/uber-go/zap"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -13,7 +13,7 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/influxdata/influxdb/models"
|
||||
"github.com/uber-go/zap"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
// statistics gathered by the httpd package.
|
||||
|
|
|
@ -18,7 +18,7 @@ import (
|
|||
|
||||
"github.com/influxdata/influxdb"
|
||||
"github.com/influxdata/influxdb/influxql"
|
||||
"github.com/uber-go/zap"
|
||||
"go.uber.org/zap"
|
||||
|
||||
"golang.org/x/crypto/bcrypt"
|
||||
)
|
||||
|
|
|
@ -15,7 +15,7 @@ import (
|
|||
|
||||
"github.com/influxdata/influxdb"
|
||||
"github.com/influxdata/influxdb/models"
|
||||
"github.com/uber-go/zap"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
// Handler is an http.Handler for the service.
|
||||
|
|
|
@ -18,7 +18,7 @@ import (
|
|||
"github.com/influxdata/influxdb/models"
|
||||
"github.com/influxdata/influxdb/services/meta"
|
||||
"github.com/influxdata/influxdb/tsdb"
|
||||
"github.com/uber-go/zap"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
// statistics gathered by the openTSDB package.
|
||||
|
|
|
@ -16,7 +16,7 @@ import (
|
|||
"github.com/influxdata/influxdb/internal"
|
||||
"github.com/influxdata/influxdb/models"
|
||||
"github.com/influxdata/influxdb/services/meta"
|
||||
"github.com/uber-go/zap"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
func Test_Service_OpenClose(t *testing.T) {
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/uber-go/zap"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
// Service manages the shard precreation service.
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/influxdata/influxdb/services/meta"
|
||||
"github.com/uber-go/zap"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
// Service represents the retention policy enforcement service.
|
||||
|
|
|
@ -14,7 +14,7 @@ import (
|
|||
"github.com/influxdata/influxdb"
|
||||
"github.com/influxdata/influxdb/services/meta"
|
||||
"github.com/influxdata/influxdb/tsdb"
|
||||
"github.com/uber-go/zap"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -12,7 +12,7 @@ import (
|
|||
"github.com/influxdata/influxdb/models"
|
||||
"github.com/influxdata/influxdb/monitor"
|
||||
"github.com/influxdata/influxdb/services/meta"
|
||||
"github.com/uber-go/zap"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
// Statistics for the Subscriber service.
|
||||
|
|
|
@ -11,7 +11,7 @@ import (
|
|||
"github.com/influxdata/influxdb/models"
|
||||
"github.com/influxdata/influxdb/services/meta"
|
||||
"github.com/influxdata/influxdb/tsdb"
|
||||
"github.com/uber-go/zap"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -9,7 +9,7 @@ import (
|
|||
"github.com/influxdata/influxdb/internal"
|
||||
"github.com/influxdata/influxdb/models"
|
||||
"github.com/influxdata/influxdb/services/meta"
|
||||
"github.com/uber-go/zap"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
func TestService_OpenClose(t *testing.T) {
|
||||
|
|
|
@ -10,7 +10,7 @@ import (
|
|||
|
||||
"github.com/influxdata/influxdb/influxql"
|
||||
"github.com/influxdata/influxdb/models"
|
||||
"github.com/uber-go/zap"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
@ -10,7 +10,7 @@ import (
|
|||
|
||||
"github.com/influxdata/influxdb/models"
|
||||
"github.com/influxdata/influxdb/tsdb"
|
||||
"github.com/uber-go/zap"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
// ringShards specifies the number of partitions that the hash ring used to
|
||||
|
|
|
@ -19,7 +19,7 @@ import (
|
|||
"github.com/influxdata/influxdb/influxql"
|
||||
"github.com/influxdata/influxdb/models"
|
||||
"github.com/influxdata/influxdb/tsdb"
|
||||
"github.com/uber-go/zap"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
//go:generate tmpl -data=@iterator.gen.go.tmpldata iterator.gen.go.tmpl
|
||||
|
|
|
@ -15,7 +15,7 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/influxdata/influxdb/models"
|
||||
"github.com/uber-go/zap"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
type TSMFile interface {
|
||||
|
|
|
@ -11,7 +11,7 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/influxdata/influxdb/tsdb/engine/tsm1"
|
||||
"github.com/uber-go/zap"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
func TestFileStore_Read(t *testing.T) {
|
||||
|
|
|
@ -19,7 +19,7 @@ import (
|
|||
"github.com/golang/snappy"
|
||||
"github.com/influxdata/influxdb/models"
|
||||
"github.com/influxdata/influxdb/pkg/limiter"
|
||||
"github.com/uber-go/zap"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -17,7 +17,7 @@ import (
|
|||
"github.com/influxdata/influxdb/influxql"
|
||||
"github.com/influxdata/influxdb/models"
|
||||
internal "github.com/influxdata/influxdb/tsdb/internal"
|
||||
"github.com/uber-go/zap"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
// monitorStatInterval is the interval at which the shard is inspected
|
||||
|
|
|
@ -19,7 +19,7 @@ import (
|
|||
"github.com/influxdata/influxdb/pkg/deep"
|
||||
"github.com/influxdata/influxdb/tsdb"
|
||||
_ "github.com/influxdata/influxdb/tsdb/engine"
|
||||
"github.com/uber-go/zap"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
// DefaultPrecision is the precision used by the MustWritePointsString() function.
|
||||
|
|
|
@ -17,7 +17,7 @@ import (
|
|||
"github.com/influxdata/influxdb/influxql"
|
||||
"github.com/influxdata/influxdb/models"
|
||||
"github.com/influxdata/influxdb/pkg/limiter"
|
||||
"github.com/uber-go/zap"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
Loading…
Reference in New Issue