Make linter happy

This commit is contained in:
S7evinK 2022-03-31 09:00:19 +02:00
parent f6fda79b9a
commit d799c35de8
2 changed files with 5 additions and 5 deletions

View file

@ -49,8 +49,8 @@ type RequestPool struct {
userAPI userapi.UserInternalAPI
keyAPI keyapi.KeyInternalAPI
rsAPI roomserverAPI.RoomserverInternalAPI
lastseen sync.Map
presence sync.Map
lastseen *sync.Map
presence *sync.Map
streams *streams.Streams
Notifier *notifier.Notifier
jetstream JetstreamPublisher
@ -74,8 +74,8 @@ func NewRequestPool(
userAPI: userAPI,
keyAPI: keyAPI,
rsAPI: rsAPI,
lastseen: sync.Map{},
presence: sync.Map{},
lastseen: &sync.Map{},
presence: &sync.Map{},
streams: streams,
Notifier: notifier,
jetstream: jetstream,

View file

@ -80,7 +80,7 @@ func TestRequestPool_updatePresence(t *testing.T) {
},
}
rp := &RequestPool{
presence: syncMap,
presence: &syncMap,
jetstream: publisher,
cfg: &config.SyncAPI{
Matrix: &config.Global{