Queue messages for re-send

This commit is contained in:
Neil Alexander
2021-07-09 23:43:09 +01:00
parent a0c2c595f0
commit 5838d89581
9 changed files with 262 additions and 155 deletions

View File

@@ -11,6 +11,7 @@ type SQLite3Storage struct {
*TableConfig
*TableMailboxes
*TableMails
*TableQueue
}
func NewSQLite3StorageStorage(filename string) (*SQLite3Storage, error) {
@@ -31,5 +32,9 @@ func NewSQLite3StorageStorage(filename string) (*SQLite3Storage, error) {
if err != nil {
return nil, fmt.Errorf("NewTableMails: %w", err)
}
s.TableQueue, err = NewTableQueue(db)
if err != nil {
return nil, fmt.Errorf("NewTableQueue: %w", err)
}
return s, nil
}