removing print and fixing comments

This commit is contained in:
Gabriel mermelstein 2025-04-21 13:07:23 +03:00
parent 32ea974f2e
commit 780e0423e4
No known key found for this signature in database
GPG Key ID: 82B8134785FEAE0D
2 changed files with 2 additions and 5 deletions

View File

@ -129,7 +129,6 @@ import "C"
import (
"encoding/json"
"errors"
"fmt"
"strconv"
"strings"
"sync"
@ -257,8 +256,6 @@ func (rm *ReliabilityManager) RegisterCallbacks(callbacks EventCallbacks) {
func (rm *ReliabilityManager) OnEvent(eventStr string) {
fmt.Println("------------------- received event: ", eventStr) // TODO: remove after debugging
jsonEvent := jsonEvent{}
err := json.Unmarshal([]byte(eventStr), &jsonEvent)
if err != nil {

View File

@ -343,7 +343,7 @@ func TestCallback_OnPeriodicSync(t *testing.T) {
func TestCallbacks_Combined(t *testing.T) {
channelID := "test-cb-combined"
// Create sender and receiver handles
// Create sender and receiver RMs
senderRm, err := NewReliabilityManager(channelID)
require.NoError(t, err)
defer senderRm.Cleanup()
@ -381,7 +381,7 @@ func TestCallbacks_Combined(t *testing.T) {
t.Errorf("Unexpected OnMessageSent call on Receiver for %s", messageId)
},
OnMissingDependencies: func(messageId MessageID, missingDeps []MessageID) {
// This callback is registered on Receiver, used for handleReceiver2 below
// This callback is registered on Receiver, used for receiverRm2 below
},
}