Skip to content

Commit 8d1ca41

Browse files
committed
enhance connection handling
1 parent 10283e0 commit 8d1ca41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

db/connector/add.go renamed to db/connector/set.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ import (
2020
"github.com/viant/scy/cred"
2121
)
2222

23-
// Add registers or updates a connector in the caller's namespace. If its secret
23+
// Set registers or updates a connector in the caller's namespace. If its secret
2424
// already exists, the connector becomes ACTIVE immediately. Otherwise it is
2525
// placed in PENDING_SECRET state and, provided the client supports the
2626
// MCP Elicit protocol, a browser flow is initiated to collect the secret
2727
// value. The method never returns the secret and therefore is safe over MCP
2828
// RPC.
29-
func (s *Service) Add(ctx context.Context, connector *Connector) (*AddOutput, error) {
29+
func (s *Service) Set(ctx context.Context, connector *Connector) (*AddOutput, error) {
3030
pend, err := s.GeneratePendingSecret(ctx, connector)
3131
if err != nil {
3232
return nil, err

0 commit comments

Comments
 (0)