From 6325ae070c99fab369a2a83639252fcf4279e6c3 Mon Sep 17 00:00:00 2001 From: Simon Frei Date: Tue, 16 Oct 2018 01:09:24 +0200 Subject: [PATCH] cmd/syncthing: Correct type assertion in verboseService (fixes #5270) (#5272) --- cmd/syncthing/verboseservice.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/syncthing/verboseservice.go b/cmd/syncthing/verboseservice.go index 53a9e0335..eb82087b5 100644 --- a/cmd/syncthing/verboseservice.go +++ b/cmd/syncthing/verboseservice.go @@ -105,7 +105,7 @@ func (s *verboseService) formatEvent(ev events.Event) string { return fmt.Sprintf("Device %v sent an index update for %q with %d items", data["device"], data["folder"], data["items"]) case events.DeviceRejected: - data := ev.Data.(map[string]interface{}) + data := ev.Data.(map[string]string) return fmt.Sprintf("Rejected connection from device %v at %v", data["device"], data["address"]) case events.FolderRejected: