Skip to content

Commit

Permalink
Merge pull request #44 from joao-zanutto/patch-7
Browse files Browse the repository at this point in the history
add default definition for common.tmp_dir
  • Loading branch information
wwoytenko authored Apr 1, 2024
2 parents 3237536 + c156a50 commit 14c8eb1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ The configuration is organized into six sections:
In the `common` section of the configuration, you can specify the following settings:

* `pg_bin_path` — path to the PostgreSQL binaries. Note that the PostgreSQL server version must match the provided binaries.
* `tmp_dir` — temporary directory for storing the table of contents files
* `tmp_dir` — temporary directory for storing the table of contents files. Default value is `/tmp`

!!! note

Expand Down
5 changes: 5 additions & 0 deletions internal/domains/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,15 @@ var (
once sync.Once
)

const defaultDirectoryStoragePath = "/tmp"

func NewConfig() *Config {
once.Do(
func() {
Cfg = &Config{
Common: Common{
TempDirectory: defaultDirectoryStoragePath,
},
Storage: StorageConfig{
S3: s3.NewConfig(),
},
Expand Down

0 comments on commit 14c8eb1

Please sign in to comment.