mirror of
https://github.com/anotherhadi/spilltea.git
synced 2026-05-20 17:52:33 +02:00
fix: log silent errors, harden proxy auth, optimize db and render pipeline
Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
This commit is contained in:
@@ -58,9 +58,13 @@ func (b *Broker) SetOnNewEntry(cb func(db.Entry)) {
|
||||
}
|
||||
|
||||
func NewBroker() *Broker {
|
||||
size := config.Global.Intercept.QueueSize
|
||||
if size <= 0 {
|
||||
size = 64
|
||||
}
|
||||
b := &Broker{
|
||||
Incoming: make(chan *PendingRequest, 64),
|
||||
IncomingResponse: make(chan *PendingResponse, 64),
|
||||
Incoming: make(chan *PendingRequest, size),
|
||||
IncomingResponse: make(chan *PendingResponse, size),
|
||||
}
|
||||
b.SetAutoForwardRegex(config.Global.Intercept.AutoForwardRegex)
|
||||
return b
|
||||
|
||||
Reference in New Issue
Block a user