File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
examples/kv_events/online_uds Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ func run(ctx context.Context) error {
110110 <- ctx .Done ()
111111 logger .Info ("Shutting down..." )
112112
113- shutdownCtx , shutdownCancel := context .WithTimeout (ctx , 30 * time .Second )
113+ shutdownCtx , shutdownCancel := context .WithTimeout (context . Background () , 30 * time .Second )
114114 defer shutdownCancel ()
115115 return httpServer .Shutdown (shutdownCtx )
116116}
@@ -169,7 +169,7 @@ func setupEventsPool(ctx context.Context, kvBlockIndex kvblock.Index) *kvevents.
169169 zmqTopic = defaultZMQTopic
170170 }
171171
172- tokenProcessor , err := kvblock .NewChunkedTokenDatabase (kvblock . DefaultTokenProcessorConfig ())
172+ tokenProcessor , err := kvblock .NewChunkedTokenDatabase (tokenProcessorConfig ())
173173 if err != nil {
174174 log .FromContext (ctx ).Error (err , "failed to create token processor for events pool" )
175175 os .Exit (1 )
You can’t perform that action at this time.
0 commit comments