mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-31 07:19:16 +02:00
core/lint: upgrade golangci-lint, replace interface{} with any (#5099)
* core/lint: upgrade golangci-lint, replace interface{} with any * regen proto
This commit is contained in:
parent
614048ae9c
commit
1a5b8b606f
135 changed files with 341 additions and 340 deletions
|
@ -24,7 +24,7 @@ func newSyncLatestRecordStream(
|
|||
}
|
||||
|
||||
var ready []*databroker.Record
|
||||
generator := func(ctx context.Context, block bool) (*databroker.Record, error) {
|
||||
generator := func(_ context.Context, _ bool) (*databroker.Record, error) {
|
||||
backend.mu.RLock()
|
||||
for _, co := range backend.lookup {
|
||||
for _, record := range co.List() {
|
||||
|
@ -39,7 +39,7 @@ func newSyncLatestRecordStream(
|
|||
|
||||
return storage.NewRecordStream(ctx, backend.closed, []storage.RecordStreamGenerator{
|
||||
generator,
|
||||
func(ctx context.Context, block bool) (*databroker.Record, error) {
|
||||
func(_ context.Context, _ bool) (*databroker.Record, error) {
|
||||
if len(ready) == 0 {
|
||||
return nil, storage.ErrStreamDone
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue