MCPcopy Create free account
hub / github.com/dagger/dagger / decodePersistedCallID

Function decodePersistedCallID

core/persisted_object.go:65–74  ·  view source on GitHub ↗
(raw string)

Source from the content-addressed store, hash-verified

63}
64
65func decodePersistedCallID(raw string) (*call.ID, error) {
66 if raw == "" {
67 return nil, nil
68 }
69 var id call.ID
70 if err := id.Decode(raw); err != nil {
71 return nil, fmt.Errorf("decode persisted call ID: %w", err)
72 }
73 return &id, nil
74}
75
76func loadPersistedResultByResultID(ctx context.Context, dag *dagql.Server, resultID uint64, label string) (dagql.AnyResult, error) {
77 if resultID == 0 {

Callers 1

Calls 1

DecodeMethod · 0.95

Tested by

no test coverage detected