Method
Forward
(s *Slot, r *Request, hkey []byte)
Source from the content-addressed store, hash-verified
| 33 | } |
| 34 | |
| 35 | func (d *forwardSync) Forward(s *Slot, r *Request, hkey []byte) error { |
| 36 | s.lock.RLock() |
| 37 | bc, err := d.process(s, r, hkey) |
| 38 | s.lock.RUnlock() |
| 39 | if err != nil { |
| 40 | return err |
| 41 | } |
| 42 | bc.PushBack(r) |
| 43 | return nil |
| 44 | } |
| 45 | |
| 46 | func (d *forwardSync) process(s *Slot, r *Request, hkey []byte) (*BackendConn, error) { |
| 47 | if s.backend.bc == nil { |
Callers
nothing calls this directly
Tested by
no test coverage detected