Open forces the connection to be opened
()
| 161 | |
| 162 | // Open forces the connection to be opened |
| 163 | func (cr *sequential) Open() (ChunkedReader, error) { |
| 164 | cr.mu.Lock() |
| 165 | defer cr.mu.Unlock() |
| 166 | |
| 167 | if cr.rc != nil && cr.offset != -1 { |
| 168 | return cr, nil |
| 169 | } |
| 170 | return cr, cr.openRange() |
| 171 | } |
| 172 | |
| 173 | // openRange will open the source Object with the current chunk range |
| 174 | // |