@@ -14,21 +14,15 @@ internal class InvocationHelper<TParam, TReturn>
14
14
private readonly ShutdownCoordinator _shutdownCoordinator ;
15
15
private readonly IFunctionStore _functionStore ;
16
16
private readonly SettingsWithDefaults _settings ;
17
- private readonly Func < FunctionId , MessageWriter ? > _messageWriterFunc ;
18
17
19
18
private ISerializer Serializer { get ; }
20
19
21
- public InvocationHelper (
22
- SettingsWithDefaults settings ,
23
- IFunctionStore functionStore ,
24
- ShutdownCoordinator shutdownCoordinator ,
25
- Func < FunctionId , MessageWriter > messageWriterFunc )
20
+ public InvocationHelper ( SettingsWithDefaults settings , IFunctionStore functionStore , ShutdownCoordinator shutdownCoordinator )
26
21
{
27
22
_settings = settings ;
28
23
29
24
Serializer = new ErrorHandlingDecorator ( settings . Serializer ) ;
30
25
_shutdownCoordinator = shutdownCoordinator ;
31
- _messageWriterFunc = messageWriterFunc ;
32
26
_functionStore = functionStore ;
33
27
}
34
28
@@ -261,27 +255,6 @@ internal record PreparedReInvocation(TParam? Param, int Epoch, string? DefaultSt
261
255
262
256
public IDisposable StartLeaseUpdater ( FunctionId functionId , int epoch = 0 )
263
257
=> LeaseUpdater . CreateAndStart ( functionId , epoch , _functionStore , _settings ) ;
264
-
265
- public async Task < bool > SetFunctionState (
266
- FunctionId functionId ,
267
- Status status ,
268
- TParam param ,
269
- DateTime ? postponeUntil ,
270
- Exception ? exception ,
271
- int expectedEpoch
272
- )
273
- {
274
- var serializer = _settings . Serializer ;
275
- return await _functionStore . SetFunctionState (
276
- functionId ,
277
- status ,
278
- param : serializer . SerializeParameter ( param ) ,
279
- result : null ,
280
- exception == null ? null : serializer . SerializeException ( exception ) ,
281
- postponeUntil ? . Ticks ,
282
- expectedEpoch
283
- ) ;
284
- }
285
258
286
259
public async Task < bool > SetFunctionState (
287
260
FunctionId functionId ,
0 commit comments