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 userAPI userapi.UserInternalAPI
keyAPI keyapi.KeyInternalAPI keyAPI keyapi.KeyInternalAPI
rsAPI roomserverAPI.RoomserverInternalAPI rsAPI roomserverAPI.RoomserverInternalAPI
lastseen sync.Map lastseen *sync.Map
presence sync.Map presence *sync.Map
streams *streams.Streams streams *streams.Streams
Notifier *notifier.Notifier Notifier *notifier.Notifier
jetstream JetstreamPublisher jetstream JetstreamPublisher
@ -74,8 +74,8 @@ func NewRequestPool(
userAPI: userAPI, userAPI: userAPI,
keyAPI: keyAPI, keyAPI: keyAPI,
rsAPI: rsAPI, rsAPI: rsAPI,
lastseen: sync.Map{}, lastseen: &sync.Map{},
presence: sync.Map{}, presence: &sync.Map{},
streams: streams, streams: streams,
Notifier: notifier, Notifier: notifier,
jetstream: jetstream, jetstream: jetstream,

View file

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