Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-congo committed Mar 11, 2024
1 parent d00c559 commit e79f00b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
12 changes: 10 additions & 2 deletions go/api/base_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion go/integTest/setup_teardown_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e79f00b

Please sign in to comment.