MCPcopy
hub / github.com/AlistGo/alist / MustSaveDriverStorage

Function MustSaveDriverStorage

internal/op/storage.go:334–339  ·  view source on GitHub ↗

MustSaveDriverStorage call from specific driver

(driver driver.Driver)

Source from the content-addressed store, hash-verified

332
333// MustSaveDriverStorage call from specific driver
334func MustSaveDriverStorage(driver driver.Driver) {
335 err := saveDriverStorage(driver)
336 if err != nil {
337 log.Errorf("failed save driver storage: %s", err)
338 }
339}
340
341func saveDriverStorage(driver driver.Driver) error {
342 storage := driver.GetStorage()

Callers 15

InitMethod · 0.92
requestMethod · 0.92
InitMethod · 0.92
InitMethod · 0.92
InitMethod · 0.92
refreshTokenMethod · 0.92
InitMethod · 0.92
doLoginMethod · 0.92
refreshTokenMethod · 0.92
loginMethod · 0.92
InitMethod · 0.92
refreshTokenMethod · 0.92

Calls 1

saveDriverStorageFunction · 0.85

Tested by

no test coverage detected