feat: add GET /relay/{id}/members endpoint (#6)
Docker / build-and-push-image (push) Failing after 16m10s
Docker / build-and-push-image (push) Failing after 16m10s
Co-authored-by: userAdityaa <aditya.chaudhary1558@gmail.com> Co-committed-by: userAdityaa <aditya.chaudhary1558@gmail.com>
This commit was merged in pull request #6.
This commit is contained in:
@@ -64,6 +64,11 @@ type Config struct {
|
||||
func LoadConfig(filename string) (*Config, error) {
|
||||
path := filepath.Join(Env("CONFIG"), filename)
|
||||
|
||||
return LoadConfigFromPath(path)
|
||||
}
|
||||
|
||||
func LoadConfigFromPath(path string) (*Config, error) {
|
||||
|
||||
var config Config
|
||||
if _, err := toml.DecodeFile(path, &config); err != nil {
|
||||
return nil, fmt.Errorf("Failed to parse config file %s: %w", path, err)
|
||||
|
||||
Reference in New Issue
Block a user