From 8ae7535e5b25b1feef92aeba7323fbf09d61410a Mon Sep 17 00:00:00 2001 From: Bin Shi Date: Sun, 23 Apr 2023 01:59:56 -0700 Subject: [PATCH] Add comments to fix go fmt errors Signed-off-by: Bin Shi --- tests/integrations/mcs/testutil.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/integrations/mcs/testutil.go b/tests/integrations/mcs/testutil.go index e4e8804ac53..da23d2fe7f2 100644 --- a/tests/integrations/mcs/testutil.go +++ b/tests/integrations/mcs/testutil.go @@ -34,6 +34,7 @@ import ( var once sync.Once +// InitLogger initializes the logger for test. func InitLogger(cfg *tso.Config) (err error) { once.Do(func() { // Setup the logger. @@ -100,6 +101,7 @@ func StartSingleTSOTestServer(ctx context.Context, re *require.Assertions, backe return s, cleanup } +// NewTSOTestServer creates a tso server with given config for testing. func NewTSOTestServer(ctx context.Context, cfg *tso.Config) (*tso.Server, testutil.CleanupFunc, error) { s := tso.CreateServer(ctx, cfg) if err := s.Run(); err != nil {