2021-05-21 16:48:26 +03:00
|
|
|
package testrig
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/superseriousbusiness/gotosocial/internal/db"
|
2021-05-27 17:06:24 +03:00
|
|
|
"github.com/superseriousbusiness/gotosocial/internal/federation/federatingdb"
|
2022-04-28 15:23:11 +03:00
|
|
|
"github.com/superseriousbusiness/gotosocial/internal/messages"
|
|
|
|
"github.com/superseriousbusiness/gotosocial/internal/worker"
|
2021-05-21 16:48:26 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
// NewTestFederatingDB returns a federating DB with the underlying db
|
2022-04-28 15:23:11 +03:00
|
|
|
func NewTestFederatingDB(db db.DB, fedWorker *worker.Worker[messages.FromFederator]) federatingdb.DB {
|
|
|
|
return federatingdb.New(db, fedWorker)
|
2021-05-21 16:48:26 +03:00
|
|
|
}
|