Fix linting

This commit is contained in:
Till Faelligen 2024-11-14 16:40:08 +01:00
parent 3ca9dae95a
commit 11b48749bf
No known key found for this signature in database
GPG Key ID: ACCDC9606D472758
51 changed files with 68 additions and 65 deletions

View File

@ -26,13 +26,16 @@ type JSServer struct {
// OnRequestFromJS is the function that JS will invoke when there is a new request.
// The JS function signature is:
// function(reqString: string): Promise<{result: string, error: string}>
//
// function(reqString: string): Promise<{result: string, error: string}>
//
// Usage is like:
// const res = await global._go_js_server.fetch(reqString);
// if (res.error) {
// // handle error: this is a 'network' error, not a non-2xx error.
// }
// const rawHttpResponse = res.result;
//
// const res = await global._go_js_server.fetch(reqString);
// if (res.error) {
// // handle error: this is a 'network' error, not a non-2xx error.
// }
// const rawHttpResponse = res.result;
func (h *JSServer) OnRequestFromJS(this js.Value, args []js.Value) interface{} {
// we HAVE to spawn a new goroutine and return immediately or else Go will deadlock
// if this request blocks at all e.g for /sync calls

View File

@ -10,9 +10,9 @@ import (
"strconv"
"time"
"github.com/gorilla/mux"
"github.com/element-hq/dendrite/internal"
"github.com/element-hq/dendrite/internal/eventutil"
"github.com/gorilla/mux"
"github.com/matrix-org/gomatrixserverlib"
"github.com/matrix-org/gomatrixserverlib/spec"
"github.com/matrix-org/util"

View File

@ -13,7 +13,6 @@ import (
"net/http"
"time"
"github.com/getsentry/sentry-go"
appserviceAPI "github.com/element-hq/dendrite/appservice/api"
"github.com/element-hq/dendrite/clientapi/auth/authtypes"
"github.com/element-hq/dendrite/clientapi/httputil"
@ -24,6 +23,7 @@ import (
"github.com/element-hq/dendrite/roomserver/types"
"github.com/element-hq/dendrite/setup/config"
userapi "github.com/element-hq/dendrite/userapi/api"
"github.com/getsentry/sentry-go"
"github.com/matrix-org/gomatrixserverlib"
"github.com/matrix-org/gomatrixserverlib/fclient"
"github.com/matrix-org/gomatrixserverlib/spec"

View File

@ -11,10 +11,10 @@ import (
"strconv"
"sync"
"github.com/google/uuid"
roomserverAPI "github.com/element-hq/dendrite/roomserver/api"
"github.com/element-hq/dendrite/roomserver/types"
userapi "github.com/element-hq/dendrite/userapi/api"
"github.com/google/uuid"
"github.com/matrix-org/gomatrixserverlib/fclient"
"github.com/matrix-org/gomatrixserverlib/spec"
"github.com/matrix-org/util"

View File

@ -18,8 +18,6 @@ import (
"sync"
"time"
"github.com/gorilla/mux"
"github.com/gorilla/websocket"
"github.com/element-hq/dendrite/appservice"
"github.com/element-hq/dendrite/cmd/dendrite-demo-pinecone/conn"
"github.com/element-hq/dendrite/cmd/dendrite-demo-pinecone/embed"
@ -43,6 +41,8 @@ import (
"github.com/element-hq/dendrite/setup/process"
"github.com/element-hq/dendrite/userapi"
userAPI "github.com/element-hq/dendrite/userapi/api"
"github.com/gorilla/mux"
"github.com/gorilla/websocket"
"github.com/matrix-org/gomatrixserverlib/spec"
"github.com/sirupsen/logrus"

View File

@ -19,15 +19,14 @@ import (
"path/filepath"
"time"
"github.com/getsentry/sentry-go"
"github.com/element-hq/dendrite/internal/caching"
"github.com/element-hq/dendrite/internal/sqlutil"
"github.com/element-hq/dendrite/setup/jetstream"
"github.com/element-hq/dendrite/setup/process"
"github.com/getsentry/sentry-go"
"github.com/matrix-org/gomatrixserverlib"
"github.com/matrix-org/gomatrixserverlib/spec"
"github.com/gorilla/mux"
"github.com/element-hq/dendrite/appservice"
"github.com/element-hq/dendrite/cmd/dendrite-demo-yggdrasil/embed"
"github.com/element-hq/dendrite/cmd/dendrite-demo-yggdrasil/signing"
@ -44,6 +43,7 @@ import (
"github.com/element-hq/dendrite/setup/mscs"
"github.com/element-hq/dendrite/test"
"github.com/element-hq/dendrite/userapi"
"github.com/gorilla/mux"
"github.com/sirupsen/logrus"
)

View File

@ -10,13 +10,13 @@ import (
"flag"
"time"
"github.com/getsentry/sentry-go"
"github.com/element-hq/dendrite/internal"
"github.com/element-hq/dendrite/internal/caching"
"github.com/element-hq/dendrite/internal/httputil"
"github.com/element-hq/dendrite/internal/sqlutil"
"github.com/element-hq/dendrite/setup/jetstream"
"github.com/element-hq/dendrite/setup/process"
"github.com/getsentry/sentry-go"
"github.com/matrix-org/gomatrixserverlib/fclient"
"github.com/prometheus/client_golang/prometheus"
"github.com/sirupsen/logrus"

View File

@ -11,13 +11,13 @@ import (
"os"
"time"
"github.com/getsentry/sentry-go"
"github.com/element-hq/dendrite/internal"
"github.com/element-hq/dendrite/internal/caching"
"github.com/element-hq/dendrite/internal/httputil"
"github.com/element-hq/dendrite/internal/sqlutil"
"github.com/element-hq/dendrite/setup/jetstream"
"github.com/element-hq/dendrite/setup/process"
"github.com/getsentry/sentry-go"
"github.com/matrix-org/gomatrixserverlib/fclient"
"github.com/prometheus/client_golang/prometheus"
"github.com/sirupsen/logrus"

View File

@ -19,14 +19,14 @@ import (
"text/template"
"github.com/cretz/bine/tor"
"github.com/element-hq/dendrite/internal"
"github.com/element-hq/dendrite/internal/httputil"
"github.com/element-hq/dendrite/setup/process"
"github.com/eyedeekay/goSam"
"github.com/eyedeekay/onramp"
sentryhttp "github.com/getsentry/sentry-go/http"
"github.com/gorilla/mux"
"github.com/kardianos/minwinsvc"
"github.com/element-hq/dendrite/internal"
"github.com/element-hq/dendrite/internal/httputil"
"github.com/element-hq/dendrite/setup/process"
"github.com/prometheus/client_golang/prometheus/promhttp"
"github.com/sirupsen/logrus"

View File

@ -10,13 +10,13 @@ import (
"os"
"time"
"github.com/getsentry/sentry-go"
"github.com/element-hq/dendrite/internal"
"github.com/element-hq/dendrite/internal/caching"
"github.com/element-hq/dendrite/internal/httputil"
"github.com/element-hq/dendrite/internal/sqlutil"
"github.com/element-hq/dendrite/setup/jetstream"
"github.com/element-hq/dendrite/setup/process"
"github.com/getsentry/sentry-go"
"github.com/matrix-org/gomatrixserverlib/fclient"
"github.com/prometheus/client_golang/prometheus"
"github.com/sirupsen/logrus"

View File

@ -18,13 +18,13 @@ import (
"text/template"
"github.com/cretz/bine/tor"
"github.com/element-hq/dendrite/internal"
"github.com/element-hq/dendrite/internal/httputil"
"github.com/element-hq/dendrite/setup/process"
"github.com/eyedeekay/onramp"
sentryhttp "github.com/getsentry/sentry-go/http"
"github.com/gorilla/mux"
"github.com/kardianos/minwinsvc"
"github.com/element-hq/dendrite/internal"
"github.com/element-hq/dendrite/internal/httputil"
"github.com/element-hq/dendrite/setup/process"
"github.com/prometheus/client_golang/prometheus/promhttp"
"github.com/sirupsen/logrus"

View File

@ -11,7 +11,6 @@ import (
"encoding/json"
"strconv"
"github.com/getsentry/sentry-go"
"github.com/element-hq/dendrite/federationapi/queue"
"github.com/element-hq/dendrite/federationapi/storage"
fedTypes "github.com/element-hq/dendrite/federationapi/types"
@ -19,6 +18,7 @@ import (
"github.com/element-hq/dendrite/setup/jetstream"
"github.com/element-hq/dendrite/setup/process"
syncTypes "github.com/element-hq/dendrite/syncapi/types"
"github.com/getsentry/sentry-go"
"github.com/matrix-org/gomatrixserverlib"
"github.com/matrix-org/gomatrixserverlib/spec"
"github.com/nats-io/nats.go"

View File

@ -14,7 +14,6 @@ import (
"net/url"
"testing"
"github.com/gorilla/mux"
"github.com/element-hq/dendrite/clientapi/auth/authtypes"
"github.com/element-hq/dendrite/cmd/dendrite-demo-yggdrasil/signing"
fedAPI "github.com/element-hq/dendrite/federationapi"
@ -26,6 +25,7 @@ import (
"github.com/element-hq/dendrite/test"
"github.com/element-hq/dendrite/test/testrig"
userAPI "github.com/element-hq/dendrite/userapi/api"
"github.com/gorilla/mux"
"github.com/matrix-org/gomatrixserverlib"
"github.com/matrix-org/gomatrixserverlib/fclient"
"github.com/matrix-org/gomatrixserverlib/spec"

View File

@ -14,7 +14,6 @@ import (
"net/url"
"testing"
"github.com/gorilla/mux"
"github.com/element-hq/dendrite/cmd/dendrite-demo-yggdrasil/signing"
fedAPI "github.com/element-hq/dendrite/federationapi"
"github.com/element-hq/dendrite/federationapi/routing"
@ -24,6 +23,7 @@ import (
"github.com/element-hq/dendrite/setup/jetstream"
"github.com/element-hq/dendrite/test"
"github.com/element-hq/dendrite/test/testrig"
"github.com/gorilla/mux"
"github.com/matrix-org/gomatrixserverlib"
"github.com/matrix-org/gomatrixserverlib/fclient"
"github.com/matrix-org/gomatrixserverlib/spec"

View File

@ -14,8 +14,6 @@ import (
"sync"
"time"
"github.com/getsentry/sentry-go"
"github.com/gorilla/mux"
fedInternal "github.com/element-hq/dendrite/federationapi/internal"
"github.com/element-hq/dendrite/federationapi/producers"
"github.com/element-hq/dendrite/internal"
@ -24,6 +22,8 @@ import (
roomserverAPI "github.com/element-hq/dendrite/roomserver/api"
"github.com/element-hq/dendrite/setup/config"
userapi "github.com/element-hq/dendrite/userapi/api"
"github.com/getsentry/sentry-go"
"github.com/gorilla/mux"
"github.com/matrix-org/gomatrixserverlib"
"github.com/matrix-org/gomatrixserverlib/fclient"
"github.com/matrix-org/gomatrixserverlib/spec"

View File

@ -12,7 +12,6 @@ import (
"net/http/httptest"
"testing"
"github.com/gorilla/mux"
"github.com/element-hq/dendrite/cmd/dendrite-demo-yggdrasil/signing"
fedAPI "github.com/element-hq/dendrite/federationapi"
"github.com/element-hq/dendrite/federationapi/routing"
@ -22,6 +21,7 @@ import (
"github.com/element-hq/dendrite/setup/jetstream"
"github.com/element-hq/dendrite/test"
"github.com/element-hq/dendrite/test/testrig"
"github.com/gorilla/mux"
"github.com/matrix-org/gomatrixserverlib"
"github.com/matrix-org/gomatrixserverlib/fclient"
"github.com/matrix-org/gomatrixserverlib/spec"

View File

@ -11,10 +11,10 @@ import (
"context"
"database/sql"
"github.com/lib/pq"
"github.com/element-hq/dendrite/federationapi/types"
"github.com/element-hq/dendrite/internal"
"github.com/element-hq/dendrite/internal/sqlutil"
"github.com/lib/pq"
"github.com/matrix-org/gomatrixserverlib/spec"
)

View File

@ -11,10 +11,10 @@ import (
"database/sql"
"encoding/json"
"github.com/lib/pq"
"github.com/element-hq/dendrite/federationapi/storage/tables"
"github.com/element-hq/dendrite/internal"
"github.com/element-hq/dendrite/internal/sqlutil"
"github.com/lib/pq"
"github.com/matrix-org/gomatrixserverlib"
"github.com/matrix-org/gomatrixserverlib/spec"
)

View File

@ -10,9 +10,9 @@ import (
"context"
"database/sql"
"github.com/lib/pq"
"github.com/element-hq/dendrite/internal"
"github.com/element-hq/dendrite/internal/sqlutil"
"github.com/lib/pq"
)
const queueJSONSchema = `

View File

@ -10,9 +10,9 @@ import (
"context"
"database/sql"
"github.com/lib/pq"
"github.com/element-hq/dendrite/internal"
"github.com/element-hq/dendrite/internal/sqlutil"
"github.com/lib/pq"
"github.com/matrix-org/gomatrixserverlib"
"github.com/matrix-org/gomatrixserverlib/spec"
)

View File

@ -10,9 +10,9 @@ import (
"context"
"database/sql"
"github.com/lib/pq"
"github.com/element-hq/dendrite/internal"
"github.com/element-hq/dendrite/internal/sqlutil"
"github.com/lib/pq"
"github.com/matrix-org/gomatrixserverlib/spec"
)

View File

@ -11,9 +11,9 @@ import (
"context"
"database/sql"
"github.com/lib/pq"
"github.com/element-hq/dendrite/internal"
"github.com/element-hq/dendrite/internal/sqlutil"
"github.com/lib/pq"
"github.com/matrix-org/gomatrixserverlib"
"github.com/matrix-org/gomatrixserverlib/spec"
)

View File

@ -12,13 +12,13 @@ import (
"fmt"
"sync"
"github.com/getsentry/sentry-go"
"github.com/element-hq/dendrite/federationapi/producers"
"github.com/element-hq/dendrite/federationapi/types"
"github.com/element-hq/dendrite/roomserver/api"
rstypes "github.com/element-hq/dendrite/roomserver/types"
syncTypes "github.com/element-hq/dendrite/syncapi/types"
userAPI "github.com/element-hq/dendrite/userapi/api"
"github.com/getsentry/sentry-go"
"github.com/matrix-org/gomatrixserverlib"
"github.com/matrix-org/gomatrixserverlib/fclient"
"github.com/matrix-org/gomatrixserverlib/spec"

View File

@ -11,13 +11,13 @@ import (
"net/http"
"strings"
"github.com/gorilla/mux"
"github.com/element-hq/dendrite/federationapi/routing"
"github.com/element-hq/dendrite/internal/httputil"
"github.com/element-hq/dendrite/mediaapi/storage"
"github.com/element-hq/dendrite/mediaapi/types"
"github.com/element-hq/dendrite/setup/config"
userapi "github.com/element-hq/dendrite/userapi/api"
"github.com/gorilla/mux"
"github.com/matrix-org/gomatrixserverlib"
"github.com/matrix-org/gomatrixserverlib/fclient"
"github.com/matrix-org/gomatrixserverlib/spec"

View File

@ -9,10 +9,10 @@ package postgres
import (
// Import the postgres database driver.
_ "github.com/lib/pq"
"github.com/element-hq/dendrite/internal/sqlutil"
"github.com/element-hq/dendrite/mediaapi/storage/shared"
"github.com/element-hq/dendrite/setup/config"
_ "github.com/lib/pq"
)
// NewDatabase opens a postgres database.

View File

@ -15,7 +15,6 @@ import (
"testing"
"time"
"github.com/gorilla/mux"
"github.com/element-hq/dendrite/cmd/dendrite-demo-yggdrasil/signing"
"github.com/element-hq/dendrite/internal/caching"
"github.com/element-hq/dendrite/internal/httputil"
@ -23,6 +22,7 @@ import (
"github.com/element-hq/dendrite/relayapi"
"github.com/element-hq/dendrite/test"
"github.com/element-hq/dendrite/test/testrig"
"github.com/gorilla/mux"
"github.com/matrix-org/gomatrixserverlib"
"github.com/matrix-org/gomatrixserverlib/fclient"
"github.com/matrix-org/gomatrixserverlib/spec"

View File

@ -11,11 +11,11 @@ import (
"net/http"
"time"
"github.com/getsentry/sentry-go"
"github.com/gorilla/mux"
"github.com/element-hq/dendrite/internal/httputil"
relayInternal "github.com/element-hq/dendrite/relayapi/internal"
"github.com/element-hq/dendrite/setup/config"
"github.com/getsentry/sentry-go"
"github.com/gorilla/mux"
"github.com/matrix-org/gomatrixserverlib"
"github.com/matrix-org/gomatrixserverlib/fclient"
"github.com/matrix-org/gomatrixserverlib/spec"

View File

@ -10,9 +10,9 @@ import (
"context"
"database/sql"
"github.com/lib/pq"
"github.com/element-hq/dendrite/internal"
"github.com/element-hq/dendrite/internal/sqlutil"
"github.com/lib/pq"
)
const relayQueueJSONSchema = `

View File

@ -10,9 +10,9 @@ import (
"context"
"database/sql"
"github.com/lib/pq"
"github.com/element-hq/dendrite/internal"
"github.com/element-hq/dendrite/internal/sqlutil"
"github.com/lib/pq"
"github.com/matrix-org/gomatrixserverlib"
"github.com/matrix-org/gomatrixserverlib/spec"
)

View File

@ -13,12 +13,12 @@ import (
"fmt"
"net/http"
"github.com/getsentry/sentry-go"
"github.com/element-hq/dendrite/internal/eventutil"
"github.com/element-hq/dendrite/roomserver/api"
"github.com/element-hq/dendrite/roomserver/storage"
"github.com/element-hq/dendrite/roomserver/types"
"github.com/element-hq/dendrite/setup/config"
"github.com/getsentry/sentry-go"
"github.com/matrix-org/gomatrixserverlib"
"github.com/matrix-org/gomatrixserverlib/fclient"
"github.com/matrix-org/gomatrixserverlib/spec"

View File

@ -11,8 +11,8 @@ import (
"database/sql"
"fmt"
"github.com/lib/pq"
"github.com/element-hq/dendrite/roomserver/types"
"github.com/lib/pq"
"github.com/matrix-org/util"
"github.com/sirupsen/logrus"
)

View File

@ -11,8 +11,8 @@ import (
"database/sql"
"fmt"
"github.com/lib/pq"
"github.com/element-hq/dendrite/internal"
"github.com/lib/pq"
"github.com/matrix-org/util"
)

View File

@ -3,10 +3,10 @@ package deltas
import (
"testing"
"github.com/lib/pq"
"github.com/element-hq/dendrite/internal/sqlutil"
"github.com/element-hq/dendrite/test"
"github.com/element-hq/dendrite/test/testrig"
"github.com/lib/pq"
"github.com/stretchr/testify/assert"
)

View File

@ -11,11 +11,11 @@ import (
"context"
"database/sql"
"github.com/lib/pq"
"github.com/element-hq/dendrite/internal"
"github.com/element-hq/dendrite/internal/sqlutil"
"github.com/element-hq/dendrite/roomserver/storage/tables"
"github.com/element-hq/dendrite/roomserver/types"
"github.com/lib/pq"
)
const eventStateKeysSchema = `

View File

@ -11,11 +11,11 @@ import (
"context"
"database/sql"
"github.com/lib/pq"
"github.com/element-hq/dendrite/internal"
"github.com/element-hq/dendrite/internal/sqlutil"
"github.com/element-hq/dendrite/roomserver/storage/tables"
"github.com/element-hq/dendrite/roomserver/types"
"github.com/lib/pq"
)
const eventTypesSchema = `

View File

@ -13,12 +13,12 @@ import (
"fmt"
"sort"
"github.com/lib/pq"
"github.com/element-hq/dendrite/internal"
"github.com/element-hq/dendrite/internal/sqlutil"
"github.com/element-hq/dendrite/roomserver/storage/postgres/deltas"
"github.com/element-hq/dendrite/roomserver/storage/tables"
"github.com/element-hq/dendrite/roomserver/types"
"github.com/lib/pq"
)
const eventsSchema = `

View File

@ -11,11 +11,11 @@ import (
"context"
"database/sql"
"github.com/lib/pq"
"github.com/element-hq/dendrite/internal"
"github.com/element-hq/dendrite/internal/sqlutil"
"github.com/element-hq/dendrite/roomserver/storage/tables"
"github.com/element-hq/dendrite/roomserver/types"
"github.com/lib/pq"
"github.com/matrix-org/gomatrixserverlib"
)

View File

@ -12,11 +12,11 @@ import (
"database/sql"
"fmt"
"github.com/lib/pq"
"github.com/element-hq/dendrite/internal"
"github.com/element-hq/dendrite/internal/sqlutil"
"github.com/element-hq/dendrite/roomserver/storage/tables"
"github.com/element-hq/dendrite/roomserver/types"
"github.com/lib/pq"
"github.com/matrix-org/util"
)

View File

@ -12,11 +12,11 @@ import (
"database/sql"
"errors"
"github.com/lib/pq"
"github.com/element-hq/dendrite/internal"
"github.com/element-hq/dendrite/internal/sqlutil"
"github.com/element-hq/dendrite/roomserver/storage/tables"
"github.com/element-hq/dendrite/roomserver/types"
"github.com/lib/pq"
"github.com/matrix-org/gomatrixserverlib/spec"
)

View File

@ -11,8 +11,8 @@ import (
"database/sql"
"fmt"
"github.com/lib/pq"
"github.com/element-hq/dendrite/internal"
"github.com/lib/pq"
"github.com/matrix-org/util"
)

View File

@ -28,10 +28,10 @@ import (
"github.com/matrix-org/gomatrixserverlib/fclient"
"github.com/prometheus/client_golang/prometheus/promhttp"
"github.com/gorilla/mux"
"github.com/kardianos/minwinsvc"
"github.com/element-hq/dendrite/internal"
"github.com/element-hq/dendrite/internal/httputil"
"github.com/gorilla/mux"
"github.com/kardianos/minwinsvc"
"github.com/sirupsen/logrus"

View File

@ -14,9 +14,9 @@ import (
"testing"
"time"
"github.com/gorilla/mux"
"github.com/element-hq/dendrite/setup/process"
"github.com/element-hq/dendrite/syncapi/synctypes"
"github.com/gorilla/mux"
"github.com/matrix-org/gomatrixserverlib"
"github.com/matrix-org/gomatrixserverlib/spec"

View File

@ -10,7 +10,6 @@ import (
"context"
"encoding/json"
"github.com/getsentry/sentry-go"
roomserverAPI "github.com/element-hq/dendrite/roomserver/api"
"github.com/element-hq/dendrite/setup/config"
"github.com/element-hq/dendrite/setup/jetstream"
@ -20,6 +19,7 @@ import (
"github.com/element-hq/dendrite/syncapi/streams"
"github.com/element-hq/dendrite/syncapi/types"
"github.com/element-hq/dendrite/userapi/api"
"github.com/getsentry/sentry-go"
"github.com/nats-io/nats.go"
"github.com/sirupsen/logrus"
)

View File

@ -14,7 +14,6 @@ import (
"errors"
"fmt"
"github.com/getsentry/sentry-go"
"github.com/element-hq/dendrite/internal/fulltext"
"github.com/element-hq/dendrite/internal/sqlutil"
"github.com/element-hq/dendrite/roomserver/api"
@ -28,6 +27,7 @@ import (
"github.com/element-hq/dendrite/syncapi/streams"
"github.com/element-hq/dendrite/syncapi/synctypes"
"github.com/element-hq/dendrite/syncapi/types"
"github.com/getsentry/sentry-go"
"github.com/matrix-org/gomatrixserverlib/spec"
"github.com/nats-io/nats.go"
"github.com/sirupsen/logrus"

View File

@ -11,12 +11,12 @@ import (
"context"
"database/sql"
"github.com/lib/pq"
"github.com/element-hq/dendrite/internal"
"github.com/element-hq/dendrite/internal/sqlutil"
"github.com/element-hq/dendrite/syncapi/storage/tables"
"github.com/element-hq/dendrite/syncapi/synctypes"
"github.com/element-hq/dendrite/syncapi/types"
"github.com/lib/pq"
)
const accountDataSchema = `

View File

@ -13,7 +13,6 @@ import (
"encoding/json"
"errors"
"github.com/lib/pq"
"github.com/element-hq/dendrite/internal"
"github.com/element-hq/dendrite/internal/sqlutil"
rstypes "github.com/element-hq/dendrite/roomserver/types"
@ -21,6 +20,7 @@ import (
"github.com/element-hq/dendrite/syncapi/storage/tables"
"github.com/element-hq/dendrite/syncapi/synctypes"
"github.com/element-hq/dendrite/syncapi/types"
"github.com/lib/pq"
"github.com/matrix-org/gomatrixserverlib"
"github.com/matrix-org/gomatrixserverlib/spec"
)

View File

@ -14,7 +14,6 @@ import (
"fmt"
"sort"
"github.com/lib/pq"
"github.com/element-hq/dendrite/internal"
"github.com/element-hq/dendrite/internal/sqlutil"
"github.com/element-hq/dendrite/roomserver/api"
@ -23,6 +22,7 @@ import (
"github.com/element-hq/dendrite/syncapi/storage/tables"
"github.com/element-hq/dendrite/syncapi/synctypes"
"github.com/element-hq/dendrite/syncapi/types"
"github.com/lib/pq"
"github.com/matrix-org/gomatrixserverlib"
)

View File

@ -12,11 +12,11 @@ import (
"database/sql"
// Import the postgres database driver.
_ "github.com/lib/pq"
"github.com/element-hq/dendrite/internal/sqlutil"
"github.com/element-hq/dendrite/setup/config"
"github.com/element-hq/dendrite/syncapi/storage/postgres/deltas"
"github.com/element-hq/dendrite/syncapi/storage/shared"
_ "github.com/lib/pq"
)
// SyncServerDatasource represents a sync server datasource which manages

View File

@ -11,11 +11,11 @@ import (
"testing"
"time"
"github.com/gorilla/mux"
"github.com/element-hq/dendrite/internal/caching"
"github.com/element-hq/dendrite/internal/httputil"
"github.com/element-hq/dendrite/internal/sqlutil"
"github.com/element-hq/dendrite/setup/config"
"github.com/gorilla/mux"
"github.com/matrix-org/gomatrixserverlib"
"github.com/matrix-org/gomatrixserverlib/spec"
"github.com/nats-io/nats.go"

View File

@ -12,13 +12,13 @@ import (
"fmt"
"time"
"github.com/lib/pq"
"github.com/element-hq/dendrite/clientapi/userutil"
"github.com/element-hq/dendrite/internal"
"github.com/element-hq/dendrite/internal/sqlutil"
"github.com/element-hq/dendrite/userapi/api"
"github.com/element-hq/dendrite/userapi/storage/postgres/deltas"
"github.com/element-hq/dendrite/userapi/storage/tables"
"github.com/lib/pq"
"github.com/matrix-org/gomatrixserverlib/spec"
)

View File

@ -12,11 +12,11 @@ import (
"encoding/json"
"time"
"github.com/lib/pq"
"github.com/element-hq/dendrite/internal"
"github.com/element-hq/dendrite/internal/sqlutil"
"github.com/element-hq/dendrite/userapi/api"
"github.com/element-hq/dendrite/userapi/storage/tables"
"github.com/lib/pq"
)
var oneTimeKeysSchema = `