mirror of
https://github.com/1f349/violet.git
synced 2024-11-13 23:11:36 +00:00
Don't wait for HTTP request to unlock router within manager
This commit is contained in:
parent
f268656b20
commit
6559b21c16
@ -48,8 +48,9 @@ func NewManager(db *sql.DB, proxy *proxy.HybridTransport) *Manager {
|
|||||||
|
|
||||||
func (m *Manager) ServeHTTP(rw http.ResponseWriter, req *http.Request) {
|
func (m *Manager) ServeHTTP(rw http.ResponseWriter, req *http.Request) {
|
||||||
m.s.RLock()
|
m.s.RLock()
|
||||||
m.r.ServeHTTP(rw, req)
|
r := m.r
|
||||||
m.s.RUnlock()
|
m.s.RUnlock()
|
||||||
|
r.ServeHTTP(rw, req)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *Manager) Compile() {
|
func (m *Manager) Compile() {
|
||||||
|
Loading…
Reference in New Issue
Block a user