mirror of
				https://github.com/vector-im/element-web.git
				synced 2025-10-31 00:01:23 +01:00 
			
		
		
		
	EventIndex: Add a method to get the current disk usage of the index.
This commit is contained in:
		
							parent
							
								
									491cef4f92
								
							
						
					
					
						commit
						f324f676d3
					
				| @ -117,6 +117,13 @@ export default class BaseEventIndexManager { | ||||
|         throw new Error("Unimplemented"); | ||||
|     } | ||||
| 
 | ||||
|     /** | ||||
|      * Get the disk usage of the index | ||||
|      */ | ||||
|     async indexSize(): Promise<number> { | ||||
|         throw new Error("Unimplemented"); | ||||
|     } | ||||
| 
 | ||||
|     /** | ||||
|      * Commit the previously queued up events to the index. | ||||
|      * | ||||
|  | ||||
| @ -406,4 +406,9 @@ export default class EventIndex { | ||||
|         const indexManager = PlatformPeg.get().getEventIndexingManager(); | ||||
|         return indexManager.searchEventIndex(searchArgs); | ||||
|     } | ||||
| 
 | ||||
|     async indexSize() { | ||||
|         const indexManager = PlatformPeg.get().getEventIndexingManager(); | ||||
|         return indexManager.indexSize(); | ||||
|     } | ||||
| } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user