Skip to content

Commit

Permalink
Merge pull request #54 from Ilhasoft/update/v7.0.1
Browse files Browse the repository at this point in the history
Update/v7.0.1
  • Loading branch information
jcbalmeida authored Nov 29, 2021
2 parents 27d5b3b + 0056883 commit 886ab1d
Show file tree
Hide file tree
Showing 21 changed files with 166 additions and 54 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ name: CI
on: [push, pull_request]
env:
go-version: '1.17.x'
postgis-version: '2.5'
postgis-version: '3.1'
jobs:
test:
name: Test
strategy:
matrix:
pg-version: ['11', '12']
pg-version: ['12', '13']
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand Down
45 changes: 45 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,48 @@
v7.0.1
----------
* Update to latest goflow

v7.0.0
----------
* Tweak README

v6.5.43
----------
* Update to latest goflow which adds reverse function

v6.5.42
----------
* Change default resumes per session limit from 500 to 250
* Update to latest goflow

v6.5.41
----------
* Update to latest goflow which adds sort function

v6.5.40
----------
* Add config option for maximum resumes per session

v6.5.39
----------
* Add notification.email_status

v6.5.38
----------
* Update to latest goflow which simplifies contactql queries after parsing
* Load contacts for flow starts from readonly database
* CI testing on PG12 and 13

v6.5.37
----------
* Look for From param if Caller param not found in incoming IVR call request
* Update to latest gocommon and go 1.17

v6.5.36
----------
* Drop ticket.subject
* Remove no longer used FlowStart.CreatedBy

v6.5.35
----------
* Tweak mailroom startup to show warning if no distinct readonly DB configured
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# About

Mailroom is the [RapidPro](https://github.com/rapidpro/rapidpro) component responsible for the execution of
Mailroom is the [RapidPro](https://github.com/rapidpro/rapidpro) components which does the heavy lifting of running flow starts, campaigns etc.
flows. It interacts directly with the RapidPro database and sends and receives messages with [Courier](https://github.com/nyaruka/courier) for handling via Redis.

# Deploying
Expand Down
2 changes: 2 additions & 0 deletions core/goflow/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ func Engine(c *runtime.Config) flows.Engine {
WithTicketServiceFactory(ticketFactory(c)).
WithAirtimeServiceFactory(airtimeFactory(c)).
WithMaxStepsPerSprint(c.MaxStepsPerSprint).
WithMaxResumesPerSession(c.MaxResumesPerSession).
Build()
})

Expand All @@ -84,6 +85,7 @@ func Simulator(c *runtime.Config) flows.Engine {
WithTicketServiceFactory(simulatorTicketServiceFactory). // and faked tickets
WithAirtimeServiceFactory(simulatorAirtimeServiceFactory). // and faked airtime transfers
WithMaxStepsPerSprint(c.MaxStepsPerSprint).
WithMaxResumesPerSession(c.MaxResumesPerSession).
Build()
})

Expand Down
2 changes: 0 additions & 2 deletions core/models/contacts.go
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,6 @@ type contactEnvelope struct {
TicketerID TicketerID `json:"ticketer_id"`
ExternalID string `json:"external_id"`
TopicID TopicID `json:"topic_id"`
Subject string `json:"subject"`
Body string `json:"body"`
AssigneeID UserID `json:"assignee_id"`
} `json:"tickets"`
Expand Down Expand Up @@ -532,7 +531,6 @@ LEFT JOIN (
array_agg(
json_build_object(
'uuid', t.uuid,
'subject', t.subject,
'body', t.body,
'external_id', t.external_id,
'ticketer_id', t.ticketer_id,
Expand Down
27 changes: 18 additions & 9 deletions core/models/notifications.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,23 @@ const (
NotificationTypeTicketsActivity NotificationType = "tickets:activity"
)

type EmailStatus string

const (
EmailStatusPending = "P"
EmailStatusSent = "S"
EmailStatusNone = "N"
)

type Notification struct {
ID NotificationID `db:"id"`
OrgID OrgID `db:"org_id"`
Type NotificationType `db:"notification_type"`
Scope string `db:"scope"`
UserID UserID `db:"user_id"`
IsSeen bool `db:"is_seen"`
CreatedOn time.Time `db:"created_on"`
ID NotificationID `db:"id"`
OrgID OrgID `db:"org_id"`
Type NotificationType `db:"notification_type"`
Scope string `db:"scope"`
UserID UserID `db:"user_id"`
IsSeen bool `db:"is_seen"`
EmailStatus EmailStatus `db:"email_status"`
CreatedOn time.Time `db:"created_on"`

ChannelID ChannelID `db:"channel_id"`
ContactImportID ContactImportID `db:"contact_import_id"`
Expand Down Expand Up @@ -107,8 +116,8 @@ func NotificationsFromTicketEvents(ctx context.Context, db Queryer, oa *OrgAsset
}

const insertNotificationSQL = `
INSERT INTO notifications_notification(org_id, notification_type, scope, user_id, is_seen, created_on, channel_id, contact_import_id)
VALUES(:org_id, :notification_type, :scope, :user_id, FALSE, NOW(), :channel_id, :contact_import_id)
INSERT INTO notifications_notification(org_id, notification_type, scope, user_id, is_seen, email_status, created_on, channel_id, contact_import_id)
VALUES(:org_id, :notification_type, :scope, :user_id, FALSE, 'N', NOW(), :channel_id, :contact_import_id)
ON CONFLICT DO NOTHING`

func insertNotifications(ctx context.Context, db Queryer, notifications []*Notification) error {
Expand Down
3 changes: 0 additions & 3 deletions core/models/starts.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,6 @@ type FlowStart struct {
Extra null.JSON `json:"extra,omitempty" db:"extra"`
ParentSummary null.JSON `json:"parent_summary,omitempty" db:"parent_summary"`
SessionHistory null.JSON `json:"session_history,omitempty" db:"session_history"`

CreatedBy string `json:"created_by"` // TODO deprecated
}
}

Expand Down Expand Up @@ -362,7 +360,6 @@ func (s *FlowStart) CreateBatch(contactIDs []ContactID, last bool, totalContacts
b.b.Extra = null.JSON(s.Extra())
b.b.IsLast = last
b.b.TotalContacts = totalContacts
b.b.CreatedBy = s.s.CreatedBy
b.b.CreatedByID = s.s.CreatedByID
return b
}
Expand Down
1 change: 0 additions & 1 deletion core/models/starts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ func TestStartsBuilding(t *testing.T) {
"UUID": "1ae96956-4b34-433e-8d1a-f05fe6923d6d",
"contact_ids": [%d, %d],
"create_contact": true,
"created_by": "",
"created_by_id": null,
"exclude_group_ids": [%d],
"flow_id": %d,
Expand Down
6 changes: 5 additions & 1 deletion core/models/triggers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ func TestFindMatchingMsgTrigger(t *testing.T) {

joinID := testdata.InsertKeywordTrigger(db, testdata.Org1, testdata.Favorites, "join", models.MatchFirst, nil, nil)
resistID := testdata.InsertKeywordTrigger(db, testdata.Org1, testdata.SingleMessage, "resist", models.MatchOnly, nil, nil)
emojiID := testdata.InsertKeywordTrigger(db, testdata.Org1, testdata.PickANumber, "👍", models.MatchFirst, nil, nil)
doctorsID := testdata.InsertKeywordTrigger(db, testdata.Org1, testdata.SingleMessage, "resist", models.MatchOnly, []*testdata.Group{testdata.DoctorsGroup}, nil)
doctorsAndNotTestersID := testdata.InsertKeywordTrigger(db, testdata.Org1, testdata.SingleMessage, "resist", models.MatchOnly, []*testdata.Group{testdata.DoctorsGroup}, []*testdata.Group{testdata.TestersGroup})
doctorsCatchallID := testdata.InsertCatchallTrigger(db, testdata.Org1, testdata.SingleMessage, []*testdata.Group{testdata.DoctorsGroup}, nil)
Expand All @@ -147,13 +148,16 @@ func TestFindMatchingMsgTrigger(t *testing.T) {
contact *flows.Contact
expectedTriggerID models.TriggerID
}{
{"join", cathy, joinID},
{" join ", cathy, joinID},
{"JOIN", cathy, joinID},
{"join this", cathy, joinID},
{"resist", george, resistID},
{"resist", bob, doctorsID},
{"resist", cathy, doctorsAndNotTestersID},
{"resist this", cathy, doctorsCatchallID},
{" 👍 ", george, emojiID},
{"👍🏾", george, emojiID}, // is 👍 + 🏾
{"😀👍", george, othersAllID},
{"other", cathy, doctorsCatchallID},
{"other", george, othersAllID},
{"", george, othersAllID},
Expand Down
2 changes: 1 addition & 1 deletion core/runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ func StartFlow(
}

// load our locked contacts
contacts, err := models.LoadContacts(ctx, rt.DB, oa, locked)
contacts, err := models.LoadContacts(ctx, rt.ReadonlyDB, oa, locked)
if err != nil {
return nil, errors.Wrapf(err, "error loading contacts to start")
}
Expand Down
8 changes: 4 additions & 4 deletions core/tasks/handler/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ func handleTimedEvent(ctx context.Context, rt *runtime.Runtime, eventType string
}

// load our contact
contacts, err := models.LoadContacts(ctx, rt.DB, oa, []models.ContactID{event.ContactID})
contacts, err := models.LoadContacts(ctx, rt.ReadonlyDB, oa, []models.ContactID{event.ContactID})
if err != nil {
return errors.Wrapf(err, "error loading contact")
}
Expand Down Expand Up @@ -308,7 +308,7 @@ func HandleChannelEvent(ctx context.Context, rt *runtime.Runtime, eventType mode
}

// load our contact
contacts, err := models.LoadContacts(ctx, rt.DB, oa, []models.ContactID{event.ContactID()})
contacts, err := models.LoadContacts(ctx, rt.ReadonlyDB, oa, []models.ContactID{event.ContactID()})
if err != nil {
return nil, errors.Wrapf(err, "error loading contact")
}
Expand Down Expand Up @@ -491,7 +491,7 @@ func handleMsgEvent(ctx context.Context, rt *runtime.Runtime, event *MsgEvent) e
}

// load our contact
contacts, err := models.LoadContacts(ctx, rt.DB, oa, []models.ContactID{event.ContactID})
contacts, err := models.LoadContacts(ctx, rt.ReadonlyDB, oa, []models.ContactID{event.ContactID})
if err != nil {
return errors.Wrapf(err, "error loading contact")
}
Expand Down Expand Up @@ -671,7 +671,7 @@ func handleTicketEvent(ctx context.Context, rt *runtime.Runtime, event *models.T
modelTicket := tickets[0]

// load our contact
contacts, err := models.LoadContacts(ctx, rt.DB, oa, []models.ContactID{modelTicket.ContactID()})
contacts, err := models.LoadContacts(ctx, rt.ReadonlyDB, oa, []models.ContactID{modelTicket.ContactID()})
if err != nil {
return errors.Wrapf(err, "error loading contact")
}
Expand Down
2 changes: 1 addition & 1 deletion core/tasks/ivr/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func HandleFlowStartBatch(bg context.Context, rt *runtime.Runtime, batch *models
}

// ok, we can initiate calls for the remaining contacts
contacts, err := models.LoadContacts(ctx, rt.DB, oa, contactIDs)
contacts, err := models.LoadContacts(ctx, rt.ReadonlyDB, oa, contactIDs)
if err != nil {
return errors.Wrapf(err, "error loading contacts")
}
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.16.6-alpine3.14
FROM golang:1.17.3-alpine3.14

WORKDIR /app

Expand Down
36 changes: 32 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/nyaruka/mailroom
require (
github.com/Masterminds/semver v1.5.0
github.com/apex/log v1.1.4
github.com/aws/aws-sdk-go v1.35.20
github.com/aws/aws-sdk-go v1.40.56
github.com/buger/jsonparser v1.0.0
github.com/certifi/gocertifi v0.0.0-20200211180108-c7c1fbc02894 // indirect
github.com/edganiukov/fcm v0.4.0
Expand All @@ -18,8 +18,8 @@ require (
github.com/lib/pq v1.4.0
github.com/mattn/go-sqlite3 v1.10.0 // indirect
github.com/nyaruka/ezconf v0.2.1
github.com/nyaruka/gocommon v1.14.0
github.com/nyaruka/goflow v0.136.4
github.com/nyaruka/gocommon v1.14.1
github.com/nyaruka/goflow v0.140.1
github.com/nyaruka/librato v1.0.0
github.com/nyaruka/logrus_sentry v0.8.2-0.20190129182604-c2962b80ba7d
github.com/nyaruka/null v1.2.0
Expand All @@ -34,4 +34,32 @@ require (
gopkg.in/go-playground/validator.v9 v9.31.0
)

go 1.16
require (
github.com/antlr/antlr4 v0.0.0-20200701161529-3d9351f61e0f // indirect
github.com/blevesearch/segment v0.9.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/fatih/structs v1.0.0 // indirect
github.com/go-mail/mail v2.3.1+incompatible // indirect
github.com/go-playground/locales v0.13.0 // indirect
github.com/go-playground/universal-translator v0.17.0 // indirect
github.com/gofrs/uuid v3.3.0+incompatible // indirect
github.com/jmespath/go-jmespath v0.4.0 // indirect
github.com/josharian/intern v1.0.0 // indirect
github.com/konsorten/go-windows-terminal-sequences v1.0.1 // indirect
github.com/leodido/go-urn v1.2.0 // indirect
github.com/mailru/easyjson v0.7.6 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
github.com/naoina/go-stringutil v0.1.0 // indirect
github.com/naoina/toml v0.1.1 // indirect
github.com/nyaruka/phonenumbers v1.0.71 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/sergi/go-diff v1.1.0 // indirect
golang.org/x/net v0.0.0-20210614182718-04defd469f4e // indirect
golang.org/x/sys v0.0.0-20210423082822-04245dca01da // indirect
golang.org/x/text v0.3.6 // indirect
google.golang.org/protobuf v1.21.0 // indirect
gopkg.in/alexcesaro/quotedprintable.v3 v3.0.0-20150716171945-2caba252f4dc // indirect
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect
)

go 1.17
26 changes: 14 additions & 12 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ github.com/apex/logs v0.0.4/go.mod h1:XzxuLZ5myVHDy9SAmYpamKKRNApGj54PfYLcFrXqDw
github.com/aphistic/golf v0.0.0-20180712155816-02c07f170c5a/go.mod h1:3NqKYiepwy8kCu4PNA+aP7WUV72eXWJeP9/r3/K9aLE=
github.com/aphistic/sweet v0.2.0/go.mod h1:fWDlIh/isSE9n6EPsRmC0det+whmX6dJid3stzu0Xys=
github.com/aws/aws-sdk-go v1.20.6/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo=
github.com/aws/aws-sdk-go v1.34.31/go.mod h1:H7NKnBqNVzoTJpGfLrQkkD+ytBA93eiDYi/+8rV9s48=
github.com/aws/aws-sdk-go v1.35.20 h1:Hs7x9Czh+MMPnZLQqHhsuZKeNFA3Vuf7pdy2r5QlVb0=
github.com/aws/aws-sdk-go v1.35.20/go.mod h1:tlPOdRjfxPBpNIwqDj61rmsnA85v9jc0Ps9+muhnW+k=
github.com/aws/aws-sdk-go v1.40.56 h1:FM2yjR0UUYFzDTMx+mH9Vyw1k1EUUxsAFzk+BjkzANA=
github.com/aws/aws-sdk-go v1.40.56/go.mod h1:585smgzpB/KqRA+K3y/NL/oYRqQvpNJYvLm+LY1U59Q=
github.com/aybabtme/rgbterm v0.0.0-20170906152045-cc83f3b3ce59/go.mod h1:q/89r3U2H7sSsE2t6Kca0lfwTK8JdoNGS/yzM/4iH5I=
github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q=
github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8=
Expand Down Expand Up @@ -132,10 +132,10 @@ github.com/naoina/toml v0.1.1 h1:PT/lllxVVN0gzzSqSlHEmP8MJB4MY2U7STGxiouV4X8=
github.com/naoina/toml v0.1.1/go.mod h1:NBIhNtsFMo3G2szEBne+bO4gS192HuIYRqfvOWb4i1E=
github.com/nyaruka/ezconf v0.2.1 h1:TDXWoqjqYya1uhou1mAJZg7rgFYL98EB0Tb3+BWtUh0=
github.com/nyaruka/ezconf v0.2.1/go.mod h1:ey182kYkw2MIi4XiWe1FR/mzI33WCmTWuceDYYxgnQw=
github.com/nyaruka/gocommon v1.14.0 h1:sZ0rsKy52GAHfEB6H74thj0cf7VIW9uRYpuFBe1iJ9Q=
github.com/nyaruka/gocommon v1.14.0/go.mod h1:J0BvHSsj8gjMp0oPW+PEb4x25oStupkNpHm7Y5OfNPo=
github.com/nyaruka/goflow v0.136.4 h1:Tl5oe1yLMXFFTSIRSHcpd5llLs63lAIATSogEZor8As=
github.com/nyaruka/goflow v0.136.4/go.mod h1:kqvs8GzFkLjogLqLmNJmpuvEHFvlKsALlDWgC25AtGk=
github.com/nyaruka/gocommon v1.14.1 h1:/ScvLmg4zzVAuZ78TaENrvSEvW3WnUdqRd/t9hX7z7E=
github.com/nyaruka/gocommon v1.14.1/go.mod h1:R1Vr7PwrYCSu+vcU0t8t/5C4TsCwcWoqiuIQCxcMqxs=
github.com/nyaruka/goflow v0.140.1 h1:B/ikb/eOgqzEIoKWYjTSQtb5h3AHpnf/xrTS0H2lJLA=
github.com/nyaruka/goflow v0.140.1/go.mod h1:s3f7q2k6IKZicOcu2mu2EcuKgK3hava43Zb3cagtpVM=
github.com/nyaruka/librato v1.0.0 h1:Vznj9WCeC1yZXbBYyYp40KnbmXLbEkjKmHesV/v2SR0=
github.com/nyaruka/librato v1.0.0/go.mod h1:pkRNLFhFurOz0QqBz6/DuTFhHHxAubWxs4Jx+J7yUgg=
github.com/nyaruka/logrus_sentry v0.8.2-0.20190129182604-c2962b80ba7d h1:hyp9u36KIwbTCo2JAJ+TuJcJBc+UZzEig7RI/S5Dvkc=
Expand Down Expand Up @@ -199,7 +199,6 @@ go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk=
golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20190426145343-a29dc8fdc734/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU=
Expand All @@ -214,8 +213,8 @@ golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn
golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20200925080053-05aa5d4ee321 h1:lleNcKRbcaC8MqgLwghIkzZ2JBQAb7QQ9MiwRt1BisA=
golang.org/x/net v0.0.0-20200925080053-05aa5d4ee321/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
golang.org/x/net v0.0.0-20210614182718-04defd469f4e h1:XpT3nA5TvE525Ne3hInMh6+GETgn27Zfm9dxsThnX2Q=
golang.org/x/net v0.0.0-20210614182718-04defd469f4e/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
Expand All @@ -230,12 +229,15 @@ golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5h
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd h1:xhmwyvizuTgC2qz7ZlMluP20uW+C3Rm0FD/WLDX8884=
golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210423082822-04245dca01da h1:b3NXsE2LusjYGGjL5bxEVZZORm/YEFFrWFjR8eFrw/c=
golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
golang.org/x/text v0.3.3 h1:cokOdA+Jmi5PJGXLlLllQSgYigAEfHXJAERHVMaCc2k=
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.6 h1:aRYxNxv6iGQlyVaZmk6ZgYEDa+Jg18DxebPSrd6bg1M=
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY=
Expand Down
1 change: 1 addition & 0 deletions mailroom.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ func (mr *Mailroom) Start() error {
Region: c.S3Region,
DisableSSL: c.S3DisableSSL,
ForcePathStyle: c.S3ForcePathStyle,
MaxRetries: 3,
})
if err != nil {
return err
Expand Down
Binary file modified mailroom_test.dump
Binary file not shown.
Loading

0 comments on commit 886ab1d

Please sign in to comment.