mirror of
https://github.com/garethgeorge/backrest.git
synced 2026-09-26 18:05:34 +00:00
working tunneling
This commit is contained in:
@@ -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"),
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user