Renames ResumeWritePosition to CurrentSize in storage driver api

This commit is contained in:
Brian Bland 2014-11-07 12:58:48 -08:00
parent abdf927c40
commit cb1bdacbe3
8 changed files with 24 additions and 24 deletions

View file

@ -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]