fixed imports

This commit is contained in:
Prateek Sachan 2020-03-17 22:42:26 +05:30
parent f964bef46f
commit b6f1e3ac9f
16 changed files with 20 additions and 5 deletions

View file

@ -17,6 +17,7 @@ package postgres
import (
"context"
"database/sql"
"github.com/matrix-org/dendrite/common"
"github.com/matrix-org/gomatrixserverlib"

View file

@ -17,6 +17,7 @@ package postgres
import (
"context"
"database/sql"
"github.com/matrix-org/dendrite/common"
"github.com/lib/pq"

View file

@ -18,6 +18,7 @@ package postgres
import (
"context"
"database/sql"
"github.com/matrix-org/dendrite/common"
"github.com/lib/pq"

View file

@ -17,13 +17,14 @@ package common
import (
"context"
"fmt"
"github.com/matrix-org/util"
"os"
"path"
"path/filepath"
"runtime"
"strings"
"github.com/matrix-org/util"
"github.com/matrix-org/dendrite/common/config"
"github.com/matrix-org/dugong"
"github.com/sirupsen/logrus"

View file

@ -90,7 +90,7 @@ func (s *PartitionOffsetStatements) selectPartitionOffsets(
if err != nil {
return nil, err
}
defer common.LogIfError(ctx, rows.Close(), "rows.close() failed")
defer LogIfError(ctx, rows.Close(), "rows.close() failed")
var results []PartitionOffset
for rows.Next() {
var offset PartitionOffset

View file

@ -18,9 +18,10 @@ package postgres
import (
"context"
"database/sql"
"github.com/matrix-org/dendrite/common"
"time"
"github.com/matrix-org/dendrite/common"
"github.com/matrix-org/dendrite/mediaapi/types"
"github.com/matrix-org/gomatrixserverlib"
)

View file

@ -18,9 +18,10 @@ package sqlite3
import (
"context"
"database/sql"
"github.com/matrix-org/dendrite/common"
"time"
"github.com/matrix-org/dendrite/common"
"github.com/matrix-org/dendrite/mediaapi/types"
"github.com/matrix-org/gomatrixserverlib"
)

View file

@ -20,6 +20,7 @@ import (
"database/sql"
"errors"
"fmt"
"github.com/matrix-org/dendrite/common"
"github.com/lib/pq"

View file

@ -18,6 +18,7 @@ package postgres
import (
"context"
"database/sql"
"github.com/matrix-org/dendrite/common"
"github.com/matrix-org/dendrite/roomserver/types"

View file

@ -18,6 +18,7 @@ package postgres
import (
"context"
"database/sql"
"github.com/matrix-org/dendrite/common"
"github.com/lib/pq"

View file

@ -18,6 +18,7 @@ package postgres
import (
"context"
"database/sql"
"github.com/matrix-org/dendrite/common"
)

View file

@ -19,9 +19,10 @@ import (
"context"
"database/sql"
"fmt"
"github.com/matrix-org/dendrite/common"
"sort"
"github.com/matrix-org/dendrite/common"
"github.com/lib/pq"
"github.com/matrix-org/dendrite/roomserver/types"
"github.com/matrix-org/util"

View file

@ -19,6 +19,7 @@ import (
"context"
"database/sql"
"fmt"
"github.com/matrix-org/dendrite/common"
"github.com/lib/pq"

View file

@ -17,6 +17,7 @@ package postgres
import (
"context"
"database/sql"
"github.com/matrix-org/dendrite/common"
)

View file

@ -17,6 +17,7 @@ package postgres
import (
"context"
"database/sql"
"github.com/matrix-org/dendrite/common"
"github.com/matrix-org/dendrite/syncapi/types"

View file

@ -18,6 +18,7 @@ package sqlite3
import (
"context"
"database/sql"
"github.com/matrix-org/dendrite/common"
"github.com/matrix-org/dendrite/syncapi/types"