Skip to content

Commit

Permalink
[Go] fix spelling (#329)
Browse files Browse the repository at this point in the history
  • Loading branch information
jba authored Jun 6, 2024
1 parent 42393d1 commit 2cdb4c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion go/ai/retriever.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func DefineDocumentStore(
ia := core.DefineAction("indexer", name, core.ActionTypeIndexer, nil, func(ctx context.Context, req *IndexerRequest) (struct{}, error) {
return struct{}{}, index(ctx, req)
})
ra := core.DefineAction("retreiver", name, core.ActionTypeRetriever, nil, retrieve)
ra := core.DefineAction("retriever", name, core.ActionTypeRetriever, nil, retrieve)
return &docStore{ia, ra}
}

Expand Down
2 changes: 1 addition & 1 deletion go/core/servers.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func newDevServeMux(r *registry) *http.ServeMux {
}

// handleRunAction looks up an action by name in the registry, runs it with the
// provded JSON input, and writes back the JSON-marshaled request.
// provided JSON input, and writes back the JSON-marshaled request.
func (s *devServer) handleRunAction(w http.ResponseWriter, r *http.Request) error {
ctx := r.Context()
var body struct {
Expand Down

0 comments on commit 2cdb4c8

Please sign in to comment.