Skip to content
Snippets Groups Projects
Commit d7cc2e55 authored by Travis Ralston's avatar Travis Ralston
Browse files

Format source

parent 8a495ae7
No related branches found
No related tags found
No related merge requests found
...@@ -45,10 +45,10 @@ type MediaRepoConfig struct { ...@@ -45,10 +45,10 @@ type MediaRepoConfig struct {
} `yaml:"thumbnails"` } `yaml:"thumbnails"`
UrlPreviews struct { UrlPreviews struct {
Enabled bool `yaml:"enabled"` Enabled bool `yaml:"enabled"`
MaxPageSizeBytes int64 `yaml:"maxPageSizeBytes"` MaxPageSizeBytes int64 `yaml:"maxPageSizeBytes"`
DisallowedNetworks []string `yaml:"disallowedNetworks,flow"` DisallowedNetworks []string `yaml:"disallowedNetworks,flow"`
AllowedNetworks []string `yaml:"allowedNetworks,flow"` AllowedNetworks []string `yaml:"allowedNetworks,flow"`
} `yaml:"urlPreviews"` } `yaml:"urlPreviews"`
} }
......
...@@ -10,7 +10,7 @@ import ( ...@@ -10,7 +10,7 @@ import (
type RequestInfo struct { type RequestInfo struct {
Context context.Context Context context.Context
Log *logrus.Entry Log *logrus.Entry
Db storage.Database Db storage.Database
Config config.MediaRepoConfig Config config.MediaRepoConfig
} }
...@@ -29,7 +29,7 @@ type ThumbnailStore struct { ...@@ -29,7 +29,7 @@ type ThumbnailStore struct {
} }
func InitThumbnailStore(sqlDb *sql.DB) (*ThumbnailStoreFactory, error) { func InitThumbnailStore(sqlDb *sql.DB) (*ThumbnailStoreFactory, error) {
store := ThumbnailStoreFactory{stmts:&thumbnailStatements{}} store := ThumbnailStoreFactory{stmts: &thumbnailStatements{}}
var err error var err error
store.sqlDb = sqlDb store.sqlDb = sqlDb
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment