add singleflight to web requests
This commit is contained in:
parent
2f7d67794f
commit
29d1ccf68c
1 changed files with 1 additions and 1 deletions
|
@ -130,7 +130,7 @@ func reflectorCmd(cmd *cobra.Command, args []string) {
|
|||
}
|
||||
defer http3PeerServer.Shutdown()
|
||||
|
||||
httpServer := http.NewServer(underlyingStoreWithCaches, requestQueueSize)
|
||||
httpServer := http.NewServer(store.WithSingleFlight("sf-http", underlyingStoreWithCaches), requestQueueSize)
|
||||
err = httpServer.Start(":" + strconv.Itoa(httpPeerPort))
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
|
|
Loading…
Reference in a new issue