Skip to content

Commit

Permalink
Remove more unused code
Browse files Browse the repository at this point in the history
To make the linter somewhat happier. Also disable the 'depguard'
linter for now.
  • Loading branch information
rhafer committed Jun 6, 2023
1 parent f580d72 commit c4647a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 37 deletions.
2 changes: 1 addition & 1 deletion .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ linters:
- typecheck
- unused
- varcheck
- depguard
#- depguard
- revive
- goimports
- unconvert
Expand Down
37 changes: 1 addition & 36 deletions pkg/rgrpc/todo/pool/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,43 +18,8 @@

package pool

import (
"sync"
)

// TODO(labkode): is concurrent access to the maps safe?
// var storageProviders = map[string]storageprovider.ProviderAPIClient{}
var (
storageProviders = newProvider()
authProviders = newProvider()
appAuthProviders = newProvider()
authRegistries = newProvider()
userShareProviders = newProvider()
ocmShareProviders = newProvider()
ocmInviteManagers = newProvider()
ocmProviderAuthorizers = newProvider()
ocmCores = newProvider()
publicShareProviders = newProvider()
preferencesProviders = newProvider()
permissionsProviders = newProvider()
appRegistries = newProvider()
appProviders = newProvider()
storageRegistries = newProvider()
gatewayProviders = newProvider()
userProviders = newProvider()
groupProviders = newProvider()
dataTxs = newProvider()
maxCallRecvMsgSize = 10240000
maxCallRecvMsgSize = 10240000
)

type provider struct {
m sync.Mutex
conn map[string]interface{}
}

func newProvider() provider {
return provider{
sync.Mutex{},
make(map[string]interface{}),
}
}

0 comments on commit c4647a5

Please sign in to comment.