Remove idle timeout from network

This commit is contained in:
9seconds
2021-03-17 22:08:47 +03:00
parent adf4ab1a35
commit f21ee40baf
7 changed files with 11 additions and 31 deletions
-5
View File
@@ -4,7 +4,6 @@ import (
"context"
"net"
"net/http"
"time"
"github.com/stretchr/testify/mock"
)
@@ -29,7 +28,3 @@ func (m *MtglibNetworkMock) MakeHTTPClient(dialFunc func(ctx context.Context,
network, address string) (net.Conn, error)) *http.Client {
return m.Called(dialFunc).Get(0).(*http.Client)
}
func (m *MtglibNetworkMock) IdleTimeout() time.Duration {
return m.Called().Get(0).(time.Duration)
}