mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-27 07:28:27 +00: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
2 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue