2 Commits

Author SHA1 Message Date
ac2db05d06 Fix local config path 2025-03-10 01:38:17 -04:00
f4904884ad Improve named actor interface 2025-03-09 01:56:09 -05:00
2 changed files with 2 additions and 2 deletions

View File

@@ -30,7 +30,7 @@ type Actor interface {
}
// Named is any object with a name.
type Named() string {
type Named interface {
// Name returns the name. This doesn't need to be the same as Type. It
// must return the same string every time. It is used to differentiate
// actors of the same type in logs.

2
ini.go
View File

@@ -163,6 +163,6 @@ func configFiles(program string) ([]string, error) {
if err != nil { return nil, err }
return []string {
filepath.Join("/etc", program, program + ".conf"),
filepath.Join(userConfig, program),
filepath.Join(userConfig, program, program + ".conf"),
}, nil
}