cherry-pick
Some checks failed
build / test (push) Failing after 1m32s
codeql / analyze (go) (push) Failing after 1m56s
build / lint (push) Successful in 9m18s

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Денис Евстигнеев 2024-03-07 21:52:36 +03:00 committed by Vasiliy Tolstov
parent 941bce3ee4
commit 3941a76333
4 changed files with 86 additions and 2233 deletions

24
.gitignore vendored Normal file
View File

@ -0,0 +1,24 @@
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib
bin
# Test binary, built with `go test -c`
*.test
# Output of the go coverage tool, specifically when used with LiteIDE
*.out
# Dependency directories (remove the comment below to include it)
# vendor/
# Go workspace file
go.work
# General
.DS_Store
.idea
.vscode

36
go.mod
View File

@ -1,18 +1,28 @@
module go.unistack.org/micro-server-grpc/v3 module go.unistack.org/micro-server-grpc/v3
go 1.16 go 1.20
require ( require (
github.com/golang/protobuf v1.5.3 github.com/golang/protobuf v1.5.4
github.com/google/pprof v0.0.0-20231101202521-4ca4178f5c7a // indirect github.com/quic-go/quic-go v0.41.0
github.com/onsi/ginkgo/v2 v2.13.0 // indirect go.unistack.org/micro/v3 v3.10.48
github.com/quic-go/qtls-go1-19 v0.3.3 // indirect golang.org/x/net v0.22.0
github.com/quic-go/quic-go v0.40.0 google.golang.org/grpc v1.62.1
github.com/stretchr/testify v1.8.3 // indirect google.golang.org/protobuf v1.33.0
go.unistack.org/micro/v3 v3.10.31 )
golang.org/x/exp v0.0.0-20231006140011-7918f672742d // indirect
golang.org/x/net v0.17.0 require (
google.golang.org/genproto/googleapis/rpc v0.0.0-20231030173426-d783a09b4405 // indirect github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 // indirect
google.golang.org/grpc v1.59.0 github.com/google/pprof v0.0.0-20240227163752-401108e1b7e7 // indirect
google.golang.org/protobuf v1.31.0 github.com/onsi/ginkgo/v2 v2.16.0 // indirect
github.com/stretchr/testify v1.8.3 // indirect
go.uber.org/mock v0.4.0 // indirect
golang.org/x/crypto v0.21.0 // indirect
golang.org/x/exp v0.0.0-20240222234643-814bf88cf225 // indirect
golang.org/x/mod v0.16.0 // indirect
golang.org/x/sys v0.18.0 // indirect
golang.org/x/text v0.14.0 // indirect
golang.org/x/tools v0.19.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240304212257-790db918fca8 // indirect
) )

2257
go.sum

File diff suppressed because it is too large Load Diff

View File

@ -864,7 +864,7 @@ func (g *Server) Start() error {
select { select {
case <-exit: case <-exit:
case <-time.After(time.Second): case <-time.After(g.opts.GracefulTimeout):
g.srv.Stop() g.srv.Stop()
} }