Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
chilagrow committed Feb 19, 2024
1 parent b08beea commit 4286628
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion internal/backends/postgresql/metadata/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ func NewRegistry(u string, l *zap.Logger, sp *state.Provider) (*Registry, error)

c := conninfo.New()
c.SetAuth(username, pwd)

ctx := conninfo.Ctx(context.Background(), c)

_, err = r.getPool(ctx)
if err != nil {
return nil, lazyerrors.Error(err)
Expand Down
1 change: 1 addition & 0 deletions internal/handler/authenticate.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ func (h *Handler) authenticate(ctx context.Context, msg *wire.OpMsg) error {
}

v := must.NotFail(credentials.Get("PLAIN"))

doc, ok := v.(*types.Document)
if !ok {
return lazyerrors.Errorf("field 'PLAIN' has type %T, expected Document", v)
Expand Down

0 comments on commit 4286628

Please sign in to comment.