From cce7270e7abed908b2eae1a88c8bbd1408ee27f2 Mon Sep 17 00:00:00 2001 From: yedf2 <120050102@qq.com> Date: Sat, 1 Jul 2023 09:47:44 +0800 Subject: [PATCH] fix format --- dtmsvr/storage/trans.go | 2 +- test/saga_grpc_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dtmsvr/storage/trans.go b/dtmsvr/storage/trans.go index e9551d5..856bd09 100644 --- a/dtmsvr/storage/trans.go +++ b/dtmsvr/storage/trans.go @@ -81,7 +81,7 @@ func (b *TransBranchStore) String() string { return dtmimp.MustMarshalString(*b) } -//KVStore defines Key-Value storage info +// KVStore defines Key-Value storage info type KVStore struct { dtmutil.ModelBase Cat string `json:"cat"` diff --git a/test/saga_grpc_test.go b/test/saga_grpc_test.go index e14d3ae..17806a3 100644 --- a/test/saga_grpc_test.go +++ b/test/saga_grpc_test.go @@ -92,7 +92,7 @@ func TestSagaGrpcEmptyUrl(t *testing.T) { assert.Equal(t, StatusSucceed, getTransStatus(saga.Gid)) } -//nolint: unparam +// nolint: unparam func genSagaGrpc(gid string, outFailed bool, inFailed bool) *dtmgrpc.SagaGrpc { saga := dtmgrpc.NewSagaGrpc(dtmutil.DefaultGrpcServer, gid) req := busi.GenReqGrpc(30, outFailed, inFailed)