Skip to content

Commit 4429324

Browse files
committed
WIP
1 parent 23df5c7 commit 4429324

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

parrotserver/server.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,8 @@ func save() error {
217217
}
218218

219219
func (p *ParrotServer) RegisterRoute(route Route) {
220-
routesMu.Lock()
221-
routes[route.Method+":"+route.Path] = route
220+
p.routesMu.Lock()
221+
p.routes[route.Method+":"+route.Path] = route
222222
routesMu.Unlock()
223223
}
224224

0 commit comments

Comments
 (0)