mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-04 00:15:09 +03:00
perf(clients): batch client creation by destination node
Group compatible committed adds into the existing multi-inbound request. Keep lane ordering, preserve target-specific payloads, and bound remote delivery across the create so unavailable nodes can converge through reconciliation.
This commit is contained in:
@@ -269,7 +269,7 @@ func (a *ClientController) create(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
clientSvc := a.clientService.TrackNodeApplies()
|
||||
needRestart, err := clientSvc.Create(&a.inboundService, &payload)
|
||||
needRestart, err := clientSvc.CreateWithContext(c.Request.Context(), &a.inboundService, &payload)
|
||||
// Flagged before the error check: a partly-applied create leaves clients
|
||||
// committed on the inbounds that succeeded, and those still need the restart.
|
||||
if needRestart {
|
||||
|
||||
Reference in New Issue
Block a user