first commit
This commit is contained in:
15
pkg/grpclient/keepalive.go
Normal file
15
pkg/grpclient/keepalive.go
Normal file
@ -0,0 +1,15 @@
|
||||
package grpclient
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"google.golang.org/grpc/keepalive"
|
||||
)
|
||||
|
||||
var (
|
||||
defaultKeepAlive = &keepalive.ClientParameters{
|
||||
Time: 10 * time.Second,
|
||||
Timeout: time.Second,
|
||||
PermitWithoutStream: true,
|
||||
}
|
||||
)
|
Reference in New Issue
Block a user