Migrate remaining configuration documents to ConfigKit
This commit is contained in:
@@ -8,8 +8,6 @@ import (
|
||||
"gitea.maximumdirect.net/eric/narratio/internal/fileops"
|
||||
)
|
||||
|
||||
const maxPartyDocumentBytes = 8 << 20
|
||||
|
||||
func resolvePartyInput(input ResolvedInputFile) (ResolvedParty, error) {
|
||||
configuredPath := strings.TrimSpace(input.Path)
|
||||
if configuredPath == "" {
|
||||
@@ -24,7 +22,7 @@ func resolvePartyInput(input ResolvedInputFile) (ResolvedParty, error) {
|
||||
path = filepath.Join(filepath.Dir(configPath), path)
|
||||
}
|
||||
path = filepath.Clean(path)
|
||||
raw, err := fileops.ReadFileBounded(path, maxPartyDocumentBytes)
|
||||
raw, err := fileops.ReadFileBounded(path, maxConfigDocumentBytes)
|
||||
if err != nil {
|
||||
return ResolvedParty{}, fmt.Errorf("read party input %q: %w", path, err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user