diff options
author | Joram Wilander <jwawilander@gmail.com> | 2018-01-17 08:50:49 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-17 08:50:49 -0500 |
commit | dce061630530c467966378ae3c5adbcf4a09e34f (patch) | |
tree | d737d8cb27d19036163c7ab445327462a911641c /store/store.go | |
parent | d35d9484f4918f8f6fc3d48a74ede7eb6db33b7b (diff) | |
download | chat-dce061630530c467966378ae3c5adbcf4a09e34f.tar.gz chat-dce061630530c467966378ae3c5adbcf4a09e34f.tar.bz2 chat-dce061630530c467966378ae3c5adbcf4a09e34f.zip |
ABC-73 Move session clean-up to daily task (#8095)
* Move session clean-up to daily task
* Split delete query into batches
Diffstat (limited to 'store/store.go')
-rw-r--r-- | store/store.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/store/store.go b/store/store.go index dc140edd4..c66daec7f 100644 --- a/store/store.go +++ b/store/store.go @@ -260,6 +260,7 @@ type SessionStore interface { UpdateRoles(userId string, roles string) StoreChannel UpdateDeviceId(id string, deviceId string, expiresAt int64) StoreChannel AnalyticsSessionCount() StoreChannel + Cleanup(expiryTime int64, batchSize int64) } type AuditStore interface { |