Skip to content

Commit 02ae59f

Browse files
committed
format code
Signed-off-by: “huazhongming” <[email protected]>
1 parent 83add0d commit 02ae59f

File tree

12 files changed

+12
-10
lines changed

12 files changed

+12
-10
lines changed

components/pluggable/grpc_mock.go

-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ func TestServerFor[TServer any, TClient any](registersvc func(grpc.ServiceRegist
7676
// client, cleanup, err := serverFactory(&your_service{})
7777
// require.NoError(t, err)
7878
// defer cleanup()
79-
//
8079
func TestSocketServerFor[TServer any, TClient any](registersvc func(grpc.ServiceRegistrar, TServer), clientFactory func(GRPCConnectionDialer) TClient) func(svc TServer) (client TClient, cleanup func(), err error) {
8180
return func(srv TServer) (client TClient, cleanup func(), err error) {
8281
const fakeSocketFolder = "/tmp"

components/sequencer/snowflake/snowflake.go

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
//
21
// Copyright 2021 Layotto Authors
32
// Licensed under the Apache License, Version 2.0 (the "License");
43
// you may not use this file except in compliance with the License.
@@ -242,9 +241,9 @@ func NewMysqlClient(meta *SnowflakeMysqlMetadata) (int64, error) {
242241
return workId, err
243242
}
244243

245-
//get id from mysql
246-
//host_name = "ip"
247-
//port = "timestamp-random number"
244+
// get id from mysql
245+
// host_name = "ip"
246+
// port = "timestamp-random number"
248247
func NewWorkId(meta SnowflakeMysqlMetadata) (int64, error) {
249248
var workId int64
250249
ip, err := getIP()

components/sequencer/snowflake/snowflake_sequencer.go

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
//
21
// Copyright 2021 Layotto Authors
32
// Licensed under the Apache License, Version 2.0 (the "License");
43
// you may not use this file except in compliance with the License.

components/sequencer/snowflake/snowflake_sequencer_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
//
21
// Copyright 2021 Layotto Authors
32
// Licensed under the Apache License, Version 2.0 (the "License");
43
// you may not use this file except in compliance with the License.

components/sequencer/snowflake/snowflake_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
//
21
// Copyright 2021 Layotto Authors
32
// Licensed under the Apache License, Version 2.0 (the "License");
43
// you may not use this file except in compliance with the License.

demo/configuration/common/client.go

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import (
2828
"google.golang.org/grpc"
2929

3030
client "github.com/layotto/go-sdk/client"
31+
3132
runtimev1pb "mosn.io/layotto/spec/proto/runtime/v1"
3233
)
3334

demo/lock/common/client.go

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99
"github.com/google/uuid"
1010

1111
client "github.com/layotto/go-sdk/client"
12+
1213
runtimev1pb "mosn.io/layotto/spec/proto/runtime/v1"
1314
)
1415

demo/secret/common/client.go

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"fmt"
77

88
"github.com/layotto/go-sdk/client"
9+
910
runtimev1pb "mosn.io/layotto/spec/proto/runtime/v1"
1011
)
1112

demo/sequencer/common/client.go

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import (
2222
"fmt"
2323

2424
client "github.com/layotto/go-sdk/client"
25+
2526
runtimev1pb "mosn.io/layotto/spec/proto/runtime/v1"
2627
)
2728

pkg/mock/components/lock/lock.go

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec/proto/extension/v1/s3/oss.pb.go

+3-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec/proto/extension/v1/s3/oss_grpc.pb.go

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)