Skip to content

Commit

Permalink
move cmd/homeserver_offline_exporters/_common to cmd/homeserver_offli…
Browse files Browse the repository at this point in the history
…ne_exporters/internal
  • Loading branch information
mpldr committed Mar 3, 2024
1 parent a31465b commit 0c957d8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions cmd/homeserver_offline_exporters/import_to_synapse/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

"github.com/disintegration/imaging"
"github.com/t2bot/matrix-media-repo/archival/v2archive"
"github.com/t2bot/matrix-media-repo/cmd/homeserver_offline_exporters/_common"
"github.com/t2bot/matrix-media-repo/cmd/homeserver_offline_exporters/internal"
"github.com/t2bot/matrix-media-repo/common/config"
"github.com/t2bot/matrix-media-repo/common/rcontext"
"github.com/t2bot/matrix-media-repo/homeserver_interop/synapse"
Expand All @@ -33,7 +33,7 @@ var synapseDefaultSizes = []thumbnailSize{
}

func main() {
cfg := _common.InitExportPsqlFlatFile("Synapse", "media_store_path")
cfg := internal.InitExportPsqlFlatFile("Synapse", "media_store_path")
ctx := rcontext.InitialNoConfig()
ctx.Config.Thumbnails = config.ThumbnailsConfig{
Types: []string{
Expand All @@ -58,7 +58,7 @@ func main() {
panic(err)
}

err = _common.ProcessArchiveDirectory(ctx, cfg.ServerName, cfg.SourcePath, func(record *v2archive.ManifestRecord, f io.ReadCloser) error {
err = internal.ProcessArchiveDirectory(ctx, cfg.ServerName, cfg.SourcePath, func(record *v2archive.ManifestRecord, f io.ReadCloser) error {
defer f.Close()
mxc := util.MxcUri(record.Origin, record.MediaId)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package _common
package internal

import (
"io"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package _common
package internal

import (
"flag"
Expand Down

0 comments on commit 0c957d8

Please sign in to comment.