Skip to content

Commit

Permalink
Merge pull request #4621 from xichengliudui/changeimportway
Browse files Browse the repository at this point in the history
Use the import () way
  • Loading branch information
deepthi authored Feb 15, 2019
2 parents 0cf5466 + faf4628 commit 3e912e8
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
4 changes: 3 additions & 1 deletion go/bytes2/buffer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ limitations under the License.

package bytes2

import "testing"
import (
"testing"
)

func TestBuffer(t *testing.T) {
b := NewBuffer(nil)
Expand Down
4 changes: 3 additions & 1 deletion go/cmd/vtgateclienttest/services/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ limitations under the License.
// Package services exposes all the services for the vtgateclienttest binary.
package services

import "vitess.io/vitess/go/vt/vtgate/vtgateservice"
import (
"vitess.io/vitess/go/vt/vtgate/vtgateservice"
)

// CreateServices creates the implementation chain of all the test cases
func CreateServices() vtgateservice.VTGateService {
Expand Down
3 changes: 2 additions & 1 deletion go/cmd/vtqueryserver/plugin_grpcqueryservice.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,14 @@ limitations under the License.

package main

// Imports and register the gRPC queryservice server

import (
"vitess.io/vitess/go/vt/servenv"
"vitess.io/vitess/go/vt/vttablet/grpcqueryservice"
"vitess.io/vitess/go/vt/vttablet/tabletserver"
)

// Imports and register the gRPC queryservice server

func init() {
tabletserver.RegisterFunctions = append(tabletserver.RegisterFunctions, func(qsc tabletserver.Controller) {
Expand Down
3 changes: 2 additions & 1 deletion go/cmd/vttablet/plugin_zk2topo.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ limitations under the License.

package main

// Imports and register the zk2 TopologyServer

import (
// Imports and register the zk2 TopologyServer
_ "vitess.io/vitess/go/vt/topo/zk2topo"
)
3 changes: 2 additions & 1 deletion go/cmd/vtworker/plugin_zk2topo.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ limitations under the License.

package main

// Imports and register the zk2 TopologyServer

import (
// Imports and register the zk2 TopologyServer
_ "vitess.io/vitess/go/vt/topo/zk2topo"
)

0 comments on commit 3e912e8

Please sign in to comment.