From c1f4477376e8b6709a148dc3a2d24d218e26ef32 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Sun, 14 Jun 2015 22:59:21 +0200 Subject: [PATCH] ItemStarted can be map[string]string --- internal/model/rwfolder.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/internal/model/rwfolder.go b/internal/model/rwfolder.go index ccbd954f6..320e38d8d 100644 --- a/internal/model/rwfolder.go +++ b/internal/model/rwfolder.go @@ -528,7 +528,7 @@ nextFile: // handleDir creates or updates the given directory func (p *rwFolder) handleDir(file protocol.FileInfo) { var err error - events.Default.Log(events.ItemStarted, map[string]interface{}{ + events.Default.Log(events.ItemStarted, map[string]string{ "folder": p.folder, "item": file.Name, "type": "dir", @@ -611,7 +611,7 @@ func (p *rwFolder) handleDir(file protocol.FileInfo) { // deleteDir attempts to delete the given directory func (p *rwFolder) deleteDir(file protocol.FileInfo) { var err error - events.Default.Log(events.ItemStarted, map[string]interface{}{ + events.Default.Log(events.ItemStarted, map[string]string{ "folder": p.folder, "item": file.Name, "type": "dir", @@ -657,7 +657,7 @@ func (p *rwFolder) deleteDir(file protocol.FileInfo) { // deleteFile attempts to delete the given file func (p *rwFolder) deleteFile(file protocol.FileInfo) { var err error - events.Default.Log(events.ItemStarted, map[string]interface{}{ + events.Default.Log(events.ItemStarted, map[string]string{ "folder": p.folder, "item": file.Name, "type": "file", @@ -706,13 +706,13 @@ func (p *rwFolder) deleteFile(file protocol.FileInfo) { // and set the right attributes on it. func (p *rwFolder) renameFile(source, target protocol.FileInfo) { var err error - events.Default.Log(events.ItemStarted, map[string]interface{}{ + events.Default.Log(events.ItemStarted, map[string]string{ "folder": p.folder, "item": source.Name, "type": "file", "action": "delete", }) - events.Default.Log(events.ItemStarted, map[string]interface{}{ + events.Default.Log(events.ItemStarted, map[string]string{ "folder": p.folder, "item": target.Name, "type": "file", @@ -825,7 +825,7 @@ func (p *rwFolder) handleFile(file protocol.FileInfo, copyChan chan<- copyBlocks l.Debugln(p, "taking shortcut on", file.Name) } - events.Default.Log(events.ItemStarted, map[string]interface{}{ + events.Default.Log(events.ItemStarted, map[string]string{ "folder": p.folder, "item": file.Name, "type": "file", @@ -851,7 +851,7 @@ func (p *rwFolder) handleFile(file protocol.FileInfo, copyChan chan<- copyBlocks return } - events.Default.Log(events.ItemStarted, map[string]interface{}{ + events.Default.Log(events.ItemStarted, map[string]string{ "folder": p.folder, "item": file.Name, "type": "file",