2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-22 21:05:10 +00:00

azure: Pass data length to Azure libray

The azureAdapter was used directly without a pointer, but the Len()
method was only defined with a pointer receiver (which means Len() is
not present on a azureAdapter{}, only on a pointer to it).
This commit is contained in:
Alexander Neumann 2021-01-29 21:08:41 +01:00
parent bbdf18c4a2
commit cdd704920d

View File

@ -123,7 +123,7 @@ type azureAdapter struct {
func (azureAdapter) Close() error { return nil }
func (a *azureAdapter) Len() int {
func (a azureAdapter) Len() int {
return int(a.Length())
}