Skip to content

Commit

Permalink
Update response.go
Browse files Browse the repository at this point in the history
  • Loading branch information
TrueCarry authored May 18, 2018
1 parent 2cf56ac commit b431a0b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions response.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ func (mc *MockCatcher) Attach(fr []*FakeResponse) {

//FindResponse finds suitable response by provided
func (mc *MockCatcher) FindResponse(query string, args []driver.NamedValue) *FakeResponse {
mc.mu.Lock()
defer mc.my.Unlock()
if mc.Logging {
log.Printf("mock_catcher: check query: %s", query)
}
Expand Down

0 comments on commit b431a0b

Please sign in to comment.