Stop tracking user and remove him from cache.
(uid types.Uid)
| 847 | |
| 848 | // Stop tracking user and remove him from cache. |
| 849 | func usersRemoveUser(uid types.Uid) { |
| 850 | if globals.usersUpdate == nil { |
| 851 | return |
| 852 | } |
| 853 | |
| 854 | upd := &UserCacheReq{UserId: uid, Gone: true} |
| 855 | if !globals.cluster.isRemoteTopic(uid.UserId()) { |
| 856 | select { |
| 857 | case globals.usersUpdate <- upd: |
| 858 | default: |
| 859 | } |
| 860 | } |
| 861 | |
| 862 | if globals.cluster != nil { |
| 863 | // Announce to cluster even if the user is local. |
| 864 | globals.cluster.routeUserReq(upd) |
| 865 | } |
| 866 | } |
| 867 | |
| 868 | // Account users as members of an active topic. Used for cache management. |
| 869 | // In case of a cluster this method is called only when the topic is local: |
no test coverage detected
searching dependent graphs…