Skip to content

Commit

Permalink
Avoid import shadowing
Browse files Browse the repository at this point in the history
  • Loading branch information
Tit Petric committed Jan 8, 2025
1 parent 1234fd5 commit 372115a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gateway/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -792,13 +792,13 @@ func (gw *Gateway) addOAuthHandlers(spec *APISpec, muxer *mux.Router) *OAuthMana
storageManager := gw.getGlobalMDCBStorageHandler(prefix, false)
storageManager.Connect()

storage := &storage.RedisCluster{KeyPrefix: prefix, HashKeys: false, ConnectionHandler: gw.StorageConnectionHandler}
storage.Connect()
storageDriver := &storage.RedisCluster{KeyPrefix: prefix, HashKeys: false, ConnectionHandler: gw.StorageConnectionHandler}
storageDriver.Connect()

osinStorage := &RedisOsinStorageInterface{
storageManager,
gw.GlobalSessionManager,
storage,
storageDriver,
spec.OrgID,
gw,
}
Expand Down

0 comments on commit 372115a

Please sign in to comment.