mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-12 18:46:24 +05:00
- renamed parameter type: ArgsReplyFailedPosts -> ReplayEventsParams - renamed param fields: - FailedRequestsInDir -> SourcePath - FailedRequestsOutDir -> FailedPath - TypeProvider -> Provider - changed param fields types from *string to string - used the SourcePath and FailedPath params directly instead of creating separate variables - used filepath.WalkDir instead of reading the directory and looping over the entries - used slices.ContainsFunc to check if the file belongs to any module (if 1+ is specified) - used filepath.Join instead of path.Join - used the path provided by WalkFunc instead of building the file paths ourselves - made error returns more descriptive - added logs for directories/files that are skipped - paths that cannot be accessed are skipped after logging the error