base-golang/pkg/grpclient/keepalive.go

16 lines
242 B
Go
Raw Permalink Normal View History

2024-07-23 10:23:43 +08:00
package grpclient
import (
"time"
"google.golang.org/grpc/keepalive"
)
var (
defaultKeepAlive = &keepalive.ClientParameters{
Time: 10 * time.Second,
Timeout: time.Second,
PermitWithoutStream: true,
}
)