Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
Signed-off-by: “huazhongming” <[email protected]>
  • Loading branch information
CrazyHZM committed Nov 18, 2024
1 parent 83add0d commit 02ae59f
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 10 deletions.
1 change: 0 additions & 1 deletion components/pluggable/grpc_mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ func TestServerFor[TServer any, TClient any](registersvc func(grpc.ServiceRegist
// client, cleanup, err := serverFactory(&your_service{})
// require.NoError(t, err)
// defer cleanup()
//
func TestSocketServerFor[TServer any, TClient any](registersvc func(grpc.ServiceRegistrar, TServer), clientFactory func(GRPCConnectionDialer) TClient) func(svc TServer) (client TClient, cleanup func(), err error) {
return func(srv TServer) (client TClient, cleanup func(), err error) {
const fakeSocketFolder = "/tmp"
Expand Down
7 changes: 3 additions & 4 deletions components/sequencer/snowflake/snowflake.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
//
// Copyright 2021 Layotto Authors
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -242,9 +241,9 @@ func NewMysqlClient(meta *SnowflakeMysqlMetadata) (int64, error) {
return workId, err
}

//get id from mysql
//host_name = "ip"
//port = "timestamp-random number"
// get id from mysql
// host_name = "ip"
// port = "timestamp-random number"
func NewWorkId(meta SnowflakeMysqlMetadata) (int64, error) {
var workId int64
ip, err := getIP()
Expand Down
1 change: 0 additions & 1 deletion components/sequencer/snowflake/snowflake_sequencer.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
//
// Copyright 2021 Layotto Authors
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
1 change: 0 additions & 1 deletion components/sequencer/snowflake/snowflake_sequencer_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
//
// Copyright 2021 Layotto Authors
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
1 change: 0 additions & 1 deletion components/sequencer/snowflake/snowflake_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
//
// Copyright 2021 Layotto Authors
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
1 change: 1 addition & 0 deletions demo/configuration/common/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import (
"google.golang.org/grpc"

client "github.com/layotto/go-sdk/client"

runtimev1pb "mosn.io/layotto/spec/proto/runtime/v1"
)

Expand Down
1 change: 1 addition & 0 deletions demo/lock/common/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"github.com/google/uuid"

client "github.com/layotto/go-sdk/client"

runtimev1pb "mosn.io/layotto/spec/proto/runtime/v1"
)

Expand Down
1 change: 1 addition & 0 deletions demo/secret/common/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"fmt"

"github.com/layotto/go-sdk/client"

runtimev1pb "mosn.io/layotto/spec/proto/runtime/v1"
)

Expand Down
1 change: 1 addition & 0 deletions demo/sequencer/common/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
"fmt"

client "github.com/layotto/go-sdk/client"

runtimev1pb "mosn.io/layotto/spec/proto/runtime/v1"
)

Expand Down
1 change: 1 addition & 0 deletions pkg/mock/components/lock/lock.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions spec/proto/extension/v1/s3/oss.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions spec/proto/extension/v1/s3/oss_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 02ae59f

Please sign in to comment.