base-golang/pkg/grpclient/keepalive.go
2024-07-23 10:23:43 +08:00

16 lines
242 B
Go

package grpclient
import (
"time"
"google.golang.org/grpc/keepalive"
)
var (
defaultKeepAlive = &keepalive.ClientParameters{
Time: 10 * time.Second,
Timeout: time.Second,
PermitWithoutStream: true,
}
)