Skip to content

Commit

Permalink
Replace callback implementations with TODO implementations
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanl-bq committed Mar 6, 2024
1 parent aa1fb08 commit 2fe5bdd
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions go/glide/glide.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,12 @@ const (

//export successCallback
func successCallback(channelPtr C.uintptr_t, message *C.char) {
goMessage := C.GoString(message)
goChannelPointer := uintptr(channelPtr)
resultChannel := *(*chan payload)(unsafe.Pointer(goChannelPointer))
resultChannel <- payload{value: goMessage, errMessage: nil}
// TODO: Implement when we implement the command logic
}

//export failureCallback
func failureCallback(channelPtr C.uintptr_t, errMessage *C.RedisErrorFFI) {
goMessage := C.GoString(errMessage.message)
goChannelPointer := uintptr(channelPtr)
resultChannel := *(*chan payload)(unsafe.Pointer(goChannelPointer))
resultChannel <- payload{value: "", errMessage: fmt.Errorf("error at redis operation: %s", goMessage)}
// TODO: Implement when we implement the command logic
}

func (glideRedisClient *GlideRedisClient) ConnectToRedis(request *protobuf.ConnectionRequest) error {
Expand Down

0 comments on commit 2fe5bdd

Please sign in to comment.