Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions pkg/gateway/catalog.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ import (
"fmt"
"net/http"
"strings"

"github.com/docker/cagent/pkg/sync"
"sync"
)

const DockerCatalogURL = "https://desktop.docker.com/mcp/catalog/v3/catalog.yaml"
Expand Down Expand Up @@ -43,7 +42,7 @@ func ServerSpec(_ context.Context, serverName string) (Server, error) {
}

// Read the MCP Catalog only once and cache the result.
var readCatalogOnce = sync.OnceErr(func() (Catalog, error) {
var readCatalogOnce = sync.OnceValues(func() (Catalog, error) {
// Use the JSON version because it's 3x time faster to parse than YAML.
url := strings.Replace(DockerCatalogURL, ".yaml", ".json", 1)

Expand Down
16 changes: 0 additions & 16 deletions pkg/sync/oncerr.go

This file was deleted.

52 changes: 0 additions & 52 deletions pkg/sync/oncerr_test.go

This file was deleted.

Loading