Skip to content

Commit 9f7d9c9

Browse files
committed
Minor fixes
1 parent a820959 commit 9f7d9c9

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

gatewayd.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,5 @@ server:
6161
tcpKeepAlive: 3s # seconds
6262
tcpNoDelay: True
6363

64-
incomingTrafficHandler: "null"
65-
outgoingTrafficHandler: "null"
66-
6764
plugins:
6865
verificationPolicy: "ignore"

network/server_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func TestRunServer(t *testing.T) {
3535
t.Fatal("buffer is nil")
3636
}
3737

38-
logger.Info().Msg("Incoming traffic")
38+
logger.Info().Msg("Ingress traffic")
3939
if buf, ok := params["buffer"].([]byte); ok {
4040
assert.Equal(t, CreatePgStartupPacket(), buf)
4141
} else {
@@ -51,7 +51,7 @@ func TestRunServer(t *testing.T) {
5151
t.Fatal("buffer is nil")
5252
}
5353

54-
logger.Info().Msg("Outgoing traffic")
54+
logger.Info().Msg("Egress traffic")
5555
if buf, ok := params["buffer"].([]byte); ok {
5656
assert.Equal(
5757
t, CreatePostgreSQLPacket('R', []byte{0x0, 0x0, 0x0, 0x3}), buf)
@@ -71,7 +71,7 @@ func TestRunServer(t *testing.T) {
7171
pool.Put(client2.ID, client2)
7272

7373
// Create a proxy with a fixed buffer pool
74-
proxy := NewProxy(pool, NewHookConfig(), false, false, &Client{
74+
proxy := NewProxy(pool, hooksConfig, false, false, &Client{
7575
Network: "tcp",
7676
Address: "localhost:5432",
7777
ReceiveBufferSize: DefaultBufferSize,

0 commit comments

Comments
 (0)