Skip to content

Commit

Permalink
Merge pull request #23 from istresearch/develop
Browse files Browse the repository at this point in the history
Release 4.0.9
  • Loading branch information
jeremyist authored Jul 27, 2021
2 parents 54001c6 + 46d92f4 commit 1f86f55
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.14 as builder
FROM golang:1.16 as builder

WORKDIR /app

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.0.8
4.0.9
3 changes: 2 additions & 1 deletion mailroom.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ func (mr *Mailroom) Start() error {
mr.DB = db
mr.DB.SetMaxIdleConns(8)
mr.DB.SetMaxOpenConns(mr.Config.DBPoolSize)
mr.DB.SetConnMaxLifetime(time.Minute * 30)
mr.DB.SetConnMaxIdleTime(time.Minute * 10)
mr.DB.SetConnMaxLifetime(time.Minute * 60)

// try connecting
ctx, cancel := context.WithTimeout(context.Background(), time.Second)
Expand Down
2 changes: 1 addition & 1 deletion models/channel_connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ func (c *ChannelConnection) MarkErrored(ctx context.Context, db Queryer, now tim
c.c.Status = ConnectionStatusErrored
c.c.EndedOn = &now

if c.c.RetryCount < ConnectionMaxRetries {
if c.c.RetryCount < ConnectionMaxRetries && (wait > time.Minute) {
c.c.RetryCount++
next := now.Add(wait)
c.c.NextAttempt = &next
Expand Down

0 comments on commit 1f86f55

Please sign in to comment.