You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
====================================================================================================
append to slice `errMsgs` with non-zero initialized length at https://github.com/wal-g/wal-g/blob/master/internal/multistorage/storage.go#L114:13
====================================================================================================
the errMsgs := make([]string, len(ce.specificStorageErrs)) should be errMsgs := make([]string, 0, len(ce.specificStorageErrs))
Please provide steps to reproduce
// it can really help
Please add config and wal-g stdout/stderr logs for debug purpose
also you can use WALG_LOG_LEVEL=DEVEL for logs collecting
If you can, provide logs
```bash
any logs here
```
The text was updated successfully, but these errors were encountered:
makezero is supported by golang-ci, so we can add it our linters.
Also, there is similar linter prealloc linter (however authors notes that it is rarely impreove performance).
Database name
Wal-g provides support for many databases, please write down name of database you uses.
Issue description
Describe your problem
I was running github actions to run linter makezero for top github golang repos.
see issues alingse/go-linter-runner#1
and the github actions output https://github.com/alingse/go-linter-runner/actions/runs/9242986885/job/25426524275
the
errMsgs := make([]string, len(ce.specificStorageErrs))
should beerrMsgs := make([]string, 0, len(ce.specificStorageErrs))
Please provide steps to reproduce
// it can really help
Please add config and wal-g stdout/stderr logs for debug purpose
also you can use WALG_LOG_LEVEL=DEVEL for logs collecting
If you can, provide logs
```bash any logs here ```
The text was updated successfully, but these errors were encountered: