Resolve race condition issues
This commit is contained in:
@@ -19,6 +19,7 @@ type ConfigInterface interface {
|
||||
MeetsConditions(directory, torrentID, torrentName string, fileNames []string) bool
|
||||
GetOnLibraryUpdate() string
|
||||
GetNetworkBufferSize() int
|
||||
GetMountPath() string
|
||||
}
|
||||
|
||||
func LoadZurgConfig(filename string) (ConfigInterface, error) {
|
||||
|
||||
@@ -10,6 +10,7 @@ type ZurgConfig struct {
|
||||
CanRepair bool `yaml:"enable_repair"`
|
||||
OnLibraryUpdate string `yaml:"on_library_update"`
|
||||
NetworkBufferSize int `yaml:"network_buffer_size"`
|
||||
MountPath string `yaml:"mount_path"`
|
||||
}
|
||||
|
||||
func (z *ZurgConfig) GetToken() string {
|
||||
@@ -55,3 +56,7 @@ func (z *ZurgConfig) GetNetworkBufferSize() int {
|
||||
}
|
||||
return z.NetworkBufferSize
|
||||
}
|
||||
|
||||
func (z *ZurgConfig) GetMountPath() string {
|
||||
return z.MountPath
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user