MCPcopy Create free account
hub / github.com/astercloud/aster / MustNewStore

Function MustNewStore

pkg/store/factory.go:85–91  ·  view source on GitHub ↗

MustNewStore 创建 Store,失败时 panic

(config Config)

Source from the content-addressed store, hash-verified

83
84// MustNewStore 创建 Store,失败时 panic
85func MustNewStore(config Config) Store {
86 s, err := NewStore(config)
87 if err != nil {
88 panic(fmt.Sprintf("failed to create store: %v", err))
89 }
90 return s
91}

Callers

nothing calls this directly

Calls 1

NewStoreFunction · 0.70

Tested by

no test coverage detected