Skip to content

Commit

Permalink
removed unnecessary packages
Browse files Browse the repository at this point in the history
Signed-off-by: EraKin575 <tejaskumar574@gmail.com>
  • Loading branch information
EraKin575 committed Dec 27, 2023
1 parent 2fe4906 commit 03c4074
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/proxy/integrations/postgresParser/postgres_parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"
"encoding/base64"
"encoding/binary"
"errors"
"io"
"net"
"os"
Expand Down Expand Up @@ -487,15 +486,14 @@ func decodePostgresOutgoing(requestBuffer []byte, clientConn, destConn net.Conn,
matched, pgResponses := matchingReadablePG(tcsMocks, pgRequests, h)

if !matched {
requestBuffer, err = util.Passthrough(clientConn, destConn, pgRequests, h.Recover, logger)
_, err = util.Passthrough(clientConn, destConn, pgRequests, h.Recover, logger)

if err != nil {
logger.Error("failed to match the dependency call from user application", zap.Any("request packets", len(pgRequests)))
return err
}
continue


}

for _, pgResponse := range pgResponses {
Expand Down

0 comments on commit 03c4074

Please sign in to comment.