@@ -16,7 +16,6 @@ import {
1616 createChannelIngressMonitor ,
1717 type ChannelIngressMonitorDeliveryResult ,
1818 type ChannelIngressMonitorLifecycle ,
19- type CreateChannelIngressMonitorOptions ,
2019} from "./ingress-monitor.js" ;
2120import { createChannelIngressQueue , type ChannelIngressQueue } from "./ingress-queue.js" ;
2221import type { IngressRetryPolicyConfig } from "./ingress-retry-policy.js" ;
@@ -73,12 +72,6 @@ function createMonitor(
7372 retryPolicy ?: IngressRetryPolicyConfig ;
7473 deferredLaneOccupancy ?: "hold" | "release" ;
7574 runPumpTask ?: ( work : ( ) => Promise < void > ) => Promise < void > ;
76- onDurableAdmission ?: CreateChannelIngressMonitorOptions <
77- RawEvent ,
78- string ,
79- StoredEvent ,
80- unknown
81- > [ "onDurableAdmission" ] ;
8275 } ,
8376 onError ?: ( error : unknown ) => void ,
8477 abortSignal ?: AbortSignal ,
@@ -206,23 +199,6 @@ describe("channel ingress monitor", () => {
206199 } ) ;
207200 } ) ;
208201
209- it ( "reports whether each durable admission inserted a new row" , async ( ) => {
210- await withQueue ( async ( queue ) => {
211- const admissions : boolean [ ] = [ ] ;
212- const monitor = createMonitor ( queue , vi . fn ( ) , {
213- onDurableAdmission : ( _raw , { isNew } ) => {
214- admissions . push ( isNew ) ;
215- } ,
216- } ) ;
217-
218- await monitor . admit ( { id : "event-one" , lane : "a" , text : "hello" } ) ;
219- await monitor . admit ( { id : "event-one" , lane : "a" , text : "hello" } ) ;
220-
221- expect ( admissions ) . toEqual ( [ true , false ] ) ;
222- await monitor . stop ( ) ;
223- } ) ;
224- } ) ;
225-
226202 it ( "skips ignored events and prunes once before one admission enqueue" , async ( ) => {
227203 await withQueue ( async ( queue ) => {
228204 const prune = vi . spyOn ( queue , "prune" ) ;
0 commit comments