From 0affdae8897d4560ce0390cccd607d2ef636ab75 Mon Sep 17 00:00:00 2001 From: Robert Swain Date: Fri, 26 May 2017 14:17:54 +0200 Subject: [PATCH] mediaapi/types: Rename member to ActiveRemoteRequests.MXCToCond Clearer that it's a map from mxc URLs to sync.Cond --- src/github.com/matrix-org/dendrite/mediaapi/routing/routing.go | 2 +- src/github.com/matrix-org/dendrite/mediaapi/types/types.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/github.com/matrix-org/dendrite/mediaapi/routing/routing.go b/src/github.com/matrix-org/dendrite/mediaapi/routing/routing.go index 3ef57bbfd..bc06d3320 100644 --- a/src/github.com/matrix-org/dendrite/mediaapi/routing/routing.go +++ b/src/github.com/matrix-org/dendrite/mediaapi/routing/routing.go @@ -40,7 +40,7 @@ func Setup(servMux *http.ServeMux, httpClient *http.Client, cfg *config.MediaAPI })) activeRemoteRequests := &types.ActiveRemoteRequests{ - Set: map[string]*sync.Cond{}, + MXCToCond: map[string]*sync.Cond{}, } r0mux.Handle("/download/{serverName}/{mediaId}", prometheus.InstrumentHandler("download", http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) { diff --git a/src/github.com/matrix-org/dendrite/mediaapi/types/types.go b/src/github.com/matrix-org/dendrite/mediaapi/types/types.go index cef390cf0..a3065bf8d 100644 --- a/src/github.com/matrix-org/dendrite/mediaapi/types/types.go +++ b/src/github.com/matrix-org/dendrite/mediaapi/types/types.go @@ -68,5 +68,5 @@ type MediaMetadata struct { type ActiveRemoteRequests struct { sync.Mutex // The string key is an mxc:// URL - Set map[string]*sync.Cond + MXCToCond map[string]*sync.Cond }