MCPcopy Create free account
hub / github.com/MG-RAST/Shock / Error

Method Error

shock-server/node/locker/locker.go:203–213  ·  view source on GitHub ↗
(id string, err error)

Source from the content-addressed store, hash-verified

201}
202
203func (f *FileLocker) Error(id string, err error) {
204 if err == nil {
205 return
206 }
207 f.Lock()
208 defer f.Unlock()
209 if info, ok := f.nodes[id]; ok {
210 info.Error = err.Error()
211 logger.Error(fmt.Sprintf("error during asynchronous file processing node=%s: %s", id, err.Error()))
212 }
213}
214
215func (f *FileLocker) Remove(id string) {
216 f.Lock()

Callers 15

AsyncIndexerFunction · 0.45
CreateNodeUploadFunction · 0.45
DeleteMethod · 0.45
UpdateMethod · 0.45
SaveMethod · 0.45
UpdateVersionMethod · 0.45
SetFileFromPartsFunction · 0.45
HandleMethod · 0.45
RemoveOldMethod · 0.45
ErrorMethod · 0.45
RemoveOldMethod · 0.45
ReadAtMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected