Skip to content

Commit

Permalink
Just a checkpoint. All of this still WIP.
Browse files Browse the repository at this point in the history
  • Loading branch information
jiceatscion committed Nov 29, 2024
1 parent 3c8e30f commit 1443c95
Show file tree
Hide file tree
Showing 5 changed files with 354 additions and 154 deletions.
12 changes: 6 additions & 6 deletions router/cmd/router/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ func realMain(ctx context.Context) error {
DataPlane: router.DataPlane{
Metrics: metrics,
ExperimentalSCMPAuthentication: globalCfg.Features.ExperimentalSCMPAuthentication,
RunConfig: router.RunConfig{
NumProcessors: globalCfg.Router.NumProcessors,
NumSlowPathProcessors: globalCfg.Router.NumSlowPathProcessors,
BatchSize: globalCfg.Router.BatchSize,
},
},
ReceiveBufferSize: globalCfg.Router.ReceiveBufferSize,
SendBufferSize: globalCfg.Router.SendBufferSize,
Expand Down Expand Up @@ -128,12 +133,7 @@ func realMain(ctx context.Context) error {
})
g.Go(func() error {
defer log.HandlePanic()
runConfig := &router.RunConfig{
NumProcessors: globalCfg.Router.NumProcessors,
NumSlowPathProcessors: globalCfg.Router.NumSlowPathProcessors,
BatchSize: globalCfg.Router.BatchSize,
}
if err := dp.DataPlane.Run(errCtx, runConfig); err != nil {
if err := dp.DataPlane.Run(errCtx); err != nil {
return serrors.Wrap("running dataplane", err)
}
return nil
Expand Down
Loading

0 comments on commit 1443c95

Please sign in to comment.