File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 44
55require (
66 cloud.google.com/go/pubsub v1.24.0
7- github.com/joho/godotenv v1.4.0
87 google.golang.org/api v0.92.0
98)
109
Original file line number Diff line number Diff line change @@ -184,8 +184,6 @@ github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ
184184github.com/hashicorp/golang-lru v0.5.1 /go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8 =
185185github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6 /go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc =
186186github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639 /go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc =
187- github.com/joho/godotenv v1.4.0 h1:3l4+N6zfMWnkbPEXKng2o2/MR5mSwTrBih4ZEkkz1lg =
188- github.com/joho/godotenv v1.4.0 /go.mod h1:f4LDr5Voq0i2e/R5DDNOoa2zzDfwtkZa6DnEwAbqwq4 =
189187github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024 /go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU =
190188github.com/jstemmer/go-junit-report v0.9.1 /go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk =
191189github.com/kisielk/gotool v1.0.0 /go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck =
Original file line number Diff line number Diff line change 44 "context"
55 "errors"
66 "fmt"
7+ "log"
78 "sync/atomic"
89 "time"
910
@@ -22,6 +23,7 @@ type Server struct {
2223func NewSession (ctx context.Context , sess session.Contract ) * Server {
2324 cl , err := client .NewClient (sess )
2425 if err != nil {
26+ log .Fatal ("Pubsubrouter client not connected" )
2527 defer cl .Client ().Close ()
2628 }
2729 return & Server {
@@ -33,6 +35,7 @@ func NewSession(ctx context.Context, sess session.Contract) *Server {
3335func NewSessionAutoConfig (ctx context.Context , projectID string ) * Server {
3436 cl , err := client .NewClientAutoConfig (ctx , projectID )
3537 if err != nil {
38+ log .Fatal ("Pubsubrouter client not connected" )
3639 defer cl .Client ().Close ()
3740 }
3841 return & Server {
You can’t perform that action at this time.
0 commit comments