mirror of
https://github.com/matrix-org/dendrite.git
synced 2024-11-29 17:51:56 -06:00
mediaapi/types: Rename member to ActiveRemoteRequests.MXCToCond
Clearer that it's a map from mxc URLs to sync.Cond
This commit is contained in:
parent
e8d3b4648b
commit
0affdae889
|
@ -40,7 +40,7 @@ func Setup(servMux *http.ServeMux, httpClient *http.Client, cfg *config.MediaAPI
|
||||||
}))
|
}))
|
||||||
|
|
||||||
activeRemoteRequests := &types.ActiveRemoteRequests{
|
activeRemoteRequests := &types.ActiveRemoteRequests{
|
||||||
Set: map[string]*sync.Cond{},
|
MXCToCond: map[string]*sync.Cond{},
|
||||||
}
|
}
|
||||||
r0mux.Handle("/download/{serverName}/{mediaId}",
|
r0mux.Handle("/download/{serverName}/{mediaId}",
|
||||||
prometheus.InstrumentHandler("download", http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
|
prometheus.InstrumentHandler("download", http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
|
||||||
|
|
|
@ -68,5 +68,5 @@ type MediaMetadata struct {
|
||||||
type ActiveRemoteRequests struct {
|
type ActiveRemoteRequests struct {
|
||||||
sync.Mutex
|
sync.Mutex
|
||||||
// The string key is an mxc:// URL
|
// The string key is an mxc:// URL
|
||||||
Set map[string]*sync.Cond
|
MXCToCond map[string]*sync.Cond
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue