Renames ResumeWritePosition to CurrentSize in storage driver api
This commit is contained in:
parent
abdf927c40
commit
cb1bdacbe3
8 changed files with 24 additions and 24 deletions
|
@ -78,7 +78,7 @@ func (d *InMemoryDriver) WriteStream(path string, offset, size uint64, reader io
|
|||
d.mutex.RLock()
|
||||
defer d.mutex.RUnlock()
|
||||
|
||||
resumableOffset, err := d.ResumeWritePosition(path)
|
||||
resumableOffset, err := d.CurrentSize(path)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
@ -100,7 +100,7 @@ func (d *InMemoryDriver) WriteStream(path string, offset, size uint64, reader io
|
|||
return nil
|
||||
}
|
||||
|
||||
func (d *InMemoryDriver) ResumeWritePosition(path string) (uint64, error) {
|
||||
func (d *InMemoryDriver) CurrentSize(path string) (uint64, error) {
|
||||
d.mutex.RLock()
|
||||
defer d.mutex.RUnlock()
|
||||
contents, ok := d.storage[path]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue