From e79f00b17b4e2ee8c0d5cad46287617c9f91ebd4 Mon Sep 17 00:00:00 2001 From: aaron-congo Date: Mon, 11 Mar 2024 09:42:50 -0700 Subject: [PATCH] Fix formatting --- go/api/base_client.go | 12 ++++++++++-- go/integTest/setup_teardown_test.go | 3 ++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/go/api/base_client.go b/go/api/base_client.go index d00f5e96a4..0849a3a66c 100644 --- a/go/api/base_client.go +++ b/go/api/base_client.go @@ -11,9 +11,10 @@ import "C" import ( "errors" + "unsafe" + "github.com/aws/glide-for-redis/go/glide/protobuf" "google.golang.org/protobuf/proto" - "unsafe" ) //export successCallback @@ -43,7 +44,14 @@ func createClient(converter connectionRequestConverter) (*baseClient, error) { byteCount := len(msg) requestBytes := C.CBytes(msg) - cResponse := (*C.struct_ConnectionResponse)(C.create_client((*C.uchar)(requestBytes), C.uintptr_t(byteCount), (C.SuccessCallback)(unsafe.Pointer(C.successCallback)), (C.FailureCallback)(unsafe.Pointer(C.failureCallback)))) + cResponse := (*C.struct_ConnectionResponse)( + C.create_client( + (*C.uchar)(requestBytes), + C.uintptr_t(byteCount), + (C.SuccessCallback)(unsafe.Pointer(C.successCallback)), + (C.FailureCallback)(unsafe.Pointer(C.failureCallback)), + ), + ) defer C.free_connection_response(cResponse) cErr := cResponse.error_message diff --git a/go/integTest/setup_teardown_test.go b/go/integTest/setup_teardown_test.go index 51f634c664..8d6f318bd1 100644 --- a/go/integTest/setup_teardown_test.go +++ b/go/integTest/setup_teardown_test.go @@ -5,13 +5,14 @@ package integTest import ( "errors" "fmt" - "github.com/stretchr/testify/suite" "log" "os" "os/exec" "strconv" "strings" "testing" + + "github.com/stretchr/testify/suite" ) type GlideTestSuite struct {