From 03290605ee055d37fcc60dd9a7f1b5f9de56ac9e Mon Sep 17 00:00:00 2001 From: Rowan Seymour Date: Mon, 19 Jul 2021 11:25:16 -0500 Subject: [PATCH] Update to latest goflow and gocommon --- go.mod | 4 ++-- go.sum | 8 ++++---- mailroom.go | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/go.mod b/go.mod index cebe96850..b5f59c24a 100644 --- a/go.mod +++ b/go.mod @@ -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.12.0 - github.com/nyaruka/goflow v0.126.1 + github.com/nyaruka/gocommon v1.13.0 + github.com/nyaruka/goflow v0.127.0 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 diff --git a/go.sum b/go.sum index 339fd96fc..c95ce4107 100644 --- a/go.sum +++ b/go.sum @@ -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.12.0 h1:k2Z++bumzyJxK9lTCBcpVBfauZmkgMj/bkXeO0eja1A= -github.com/nyaruka/gocommon v1.12.0/go.mod h1:Jn7UIE8zwIr4JaviDf4PZrrQlN8r6QGVhOuaF/JoKus= -github.com/nyaruka/goflow v0.126.1 h1:8/eExVq5zRScFF5uiJQttV5xWpF2vwn4JwjnPo00wt0= -github.com/nyaruka/goflow v0.126.1/go.mod h1:EZ9eMIm1g2Yyr9uRvBow0AJsi1j2q4dgWTlKYo0fWMA= +github.com/nyaruka/gocommon v1.13.0 h1:WPL//ekajA30KinYRr6IrdP1igNZpcUAfABleHCuxPQ= +github.com/nyaruka/gocommon v1.13.0/go.mod h1:Jn7UIE8zwIr4JaviDf4PZrrQlN8r6QGVhOuaF/JoKus= +github.com/nyaruka/goflow v0.127.0 h1:GiY2GXsHEXAROVajDkHAVyvM3anEHibq8vgKZOmT3qw= +github.com/nyaruka/goflow v0.127.0/go.mod h1:Xp1p21TyYiMM/fVQNWQRok/fZ1ZeNoeQGUd//LvYxq4= 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= diff --git a/mailroom.go b/mailroom.go index 96a6c1686..ff28ef888 100644 --- a/mailroom.go +++ b/mailroom.go @@ -170,8 +170,8 @@ func (mr *Mailroom) Start() error { if err != nil { return err } - mr.rt.MediaStorage = storage.NewS3(s3Client, mr.rt.Config.S3MediaBucket, 32) - mr.rt.SessionStorage = storage.NewS3(s3Client, mr.rt.Config.S3SessionBucket, 32) + mr.rt.MediaStorage = storage.NewS3(s3Client, mr.rt.Config.S3MediaBucket, c.S3Region, 32) + mr.rt.SessionStorage = storage.NewS3(s3Client, mr.rt.Config.S3SessionBucket, c.S3Region, 32) } else { mr.rt.MediaStorage = storage.NewFS("_storage") mr.rt.SessionStorage = storage.NewFS("_storage")