refactor(session): rename the history controller read to events
This commit is contained in:
1 parent
8cddf8b14c
commit
e032fdc2a8
4 files changed
+16
-16
No files matched your search
@@ -30,12 +30,12 @@ export class HistoryController {
|
||||
}
|
||||
|
||||
/**
|
||||
* Read a passive history page at an exact event cut.
|
||||
* @param request - Session identity and optional historical cut and page window.
|
||||
* Read a passive page of Session events at an exact cut.
|
||||
* @param request - Session identity and optional cut and page window.
|
||||
* @param signal - read cancellation.
|
||||
* @returns a page at the supplied cut, or the observed log end when omitted.
|
||||
*/
|
||||
async history(request: SessionPageRequest, signal: AbortSignal): Promise<SessionEventsPage> {
|
||||
async events(request: SessionPageRequest, signal: AbortSignal): Promise<SessionEventsPage> {
|
||||
const spec = resolveHistoryRequest(request)
|
||||
try {
|
||||
return await this.usingObservation({ sessionId: addressId(request.address), projection: request.address.kind === 'subagent' }, signal, (observation) => {
|
||||
|
||||
@@ -527,7 +527,7 @@ export class SessionController extends TypertRemoteService {
|
||||
*/
|
||||
@Remote('page')
|
||||
page(request: SessionPageRequest, signal: AbortSignal): Promise<SessionEventsPage> {
|
||||
return this.historyController.history(request, signal)
|
||||
return this.historyController.events(request, signal)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -538,7 +538,7 @@ export class SessionController extends TypertRemoteService {
|
||||
*/
|
||||
@Remote
|
||||
events(request: SessionPageRequest, signal: AbortSignal): Promise<SessionEventsPage> {
|
||||
return this.historyController.history(request, signal)
|
||||
return this.historyController.events(request, signal)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user