MCPcopy Index your code
hub / github.com/coder/coder / publishTemplateUpdate

Method publishTemplateUpdate

coderd/templateversions.go:2026–2032  ·  view source on GitHub ↗
(ctx context.Context, templateID uuid.UUID)

Source from the content-addressed store, hash-verified

2024}
2025
2026func (api *API) publishTemplateUpdate(ctx context.Context, templateID uuid.UUID) {
2027 err := api.Pubsub.Publish(watchTemplateChannel(templateID), []byte{})
2028 if err != nil {
2029 api.Logger.Warn(ctx, "failed to publish template update",
2030 slog.F("template_id", templateID), slog.Error(err))
2031 }
2032}

Callers 1

Calls 3

watchTemplateChannelFunction · 0.85
PublishMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected