chore: upgrade gofumpt to v0.3.1 (#2028)
This commit is contained in:
13 files changed
+34
-17
No files matched your search
@@ -13,7 +13,8 @@ import (
|
||||
// * The session has not reached its connection limit or has a connection limit of -1.
|
||||
// If any of these criteria is not met, it returns an error with Code InvalidSessionState.
|
||||
func AuthorizeConnection(ctx context.Context, sessionRepoFn *Repository, connectionRepoFn *ConnectionRepository,
|
||||
sessionId, workerId string, opt ...Option) (*Connection, []*ConnectionState, *AuthzSummary, error) {
|
||||
sessionId, workerId string, opt ...Option,
|
||||
) (*Connection, []*ConnectionState, *AuthzSummary, error) {
|
||||
const op = "session.AuthorizeConnection"
|
||||
|
||||
connection, connectionStates, err := connectionRepoFn.AuthorizeConnection(ctx, sessionId, workerId)
|
||||
|
||||
@@ -10,7 +10,8 @@ import (
|
||||
// * closes requested connections
|
||||
// * uses the sessionId of the connection to see if the session meets conditions for termination
|
||||
func CloseConnections(ctx context.Context, sessionRepoFn *Repository, connectionRepoFn *ConnectionRepository,
|
||||
closeWiths []CloseWith) ([]closeConnectionResp, error) {
|
||||
closeWiths []CloseWith,
|
||||
) ([]closeConnectionResp, error) {
|
||||
const op = "session.AuthorizeConnection"
|
||||
|
||||
closeInfos, err := connectionRepoFn.closeConnections(ctx, closeWiths)
|
||||
|
||||
Reference in new issue
Block a user