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

Method Error

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

Source from the content-addressed store, hash-verified

261}
262
263func (i *IndexLocker) Error(id string, name string, err error) {
264 if err == nil {
265 return
266 }
267 i.Lock()
268 defer i.Unlock()
269 if names, nok := i.nodes[id]; nok {
270 if info, iok := names[name]; iok {
271 info.Error = err.Error()
272 logger.Error(fmt.Sprintf("error during asynchronous indexing node=%s, index=%s: %s", id, name, err.Error()))
273 }
274 }
275}
276
277func (i *IndexLocker) Remove(id string, name string) {
278 i.Lock()

Callers

nothing calls this directly

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected