From f668faa8940ba02e796e016ff27f2e4620b49a29 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sun, 19 Apr 2020 15:57:49 +0300 Subject: Process different rooms in sync responses in goroutines --- config/config.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'config') diff --git a/config/config.go b/config/config.go index d85e243..37058cd 100644 --- a/config/config.go +++ b/config/config.go @@ -277,3 +277,11 @@ func (config *Config) LoadRoom(_ id.RoomID) *mautrix.Room { func (config *Config) GetRoom(roomID id.RoomID) *rooms.Room { return config.Rooms.GetOrCreate(roomID) } + +func (config *Config) DisableUnloading() { + config.Rooms.DisableUnloading() +} + +func (config *Config) EnableUnloading() { + config.Rooms.EnableUnloading() +} -- cgit v1.2.3