}
func (h *azStubHandler) TouchWithDate(container, hash string, t time.Time) {
- if blob, ok := h.blobs[container+"|"+hash]; !ok {
+ blob, ok := h.blobs[container+"|"+hash]
+ if !ok {
return
- } else {
- blob.Mtime = t
}
+ blob.Mtime = t
}
func (h *azStubHandler) PutRaw(container, hash string, data []byte) {
azureWriteRaceInterval = 2 * time.Second
azureWriteRacePollTime = 5 * time.Millisecond
- v.PutRaw(TestHash, []byte{})
+ v.PutRaw(TestHash, nil)
buf := new(bytes.Buffer)
v.IndexTo("", buf)