Skip to content

Commit f142ac9

Browse files
committed
Testing
1 parent a310200 commit f142ac9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

go.mod

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ go 1.18
44

55
require (
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

go.sum

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,6 @@ github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ
184184
github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
185185
github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
186186
github.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=
189187
github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU=
190188
github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk=
191189
github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=

server.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"context"
55
"errors"
66
"fmt"
7+
"log"
78
"sync/atomic"
89
"time"
910

@@ -22,6 +23,7 @@ type Server struct {
2223
func 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 {
3335
func 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{

0 commit comments

Comments
 (0)