working tunneling

This commit is contained in:
Gareth George
2025-10-31 18:24:34 -07:00
committed by Gareth
parent 3fde75029d
commit 05f5a7e176
2 changed files with 1 additions and 3 deletions
-1
View File
@@ -66,7 +66,6 @@ func TestHandler(t *testing.T) {
}
t.Log("Connection is ready")
client := v1syncconnect.NewSyncPeerServiceClient(tunnel.NewWrappedStreamClient(wrapped), "https://localhost:80")
resp, err := client.GetOperationMetadata(ctx, connect.NewRequest(&v1.OpSelector{
OriginalInstanceKeyid: proto.String("test-instance-key-id"),
+1 -2
View File
@@ -195,8 +195,7 @@ func (c *connState) SetReadDeadline(t time.Time) error {
if c.readDeadlineTimer != nil {
c.readDeadlineTimer.Stop()
}
if t.IsZero() {
c.readDeadlineTimer = nil
if t.Before(time.Now()) {
return nil
}
c.readDeadlineTimer = time.AfterFunc(time.Until(t), func() {