mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-17 11:24:44 -07:00
Added gosimple
- Get gosimple package - Updated staticcheck's URL - Moved build and above checks in `before_script` section to fail fast - Fixed reports from gosimple
This commit is contained in:
@@ -308,7 +308,7 @@ func TestWriteDeadline(t *testing.T) {
|
||||
t.Fatalf("Error on publish: %v", err)
|
||||
}
|
||||
}
|
||||
dur := time.Now().Sub(start)
|
||||
dur := time.Since(start)
|
||||
// user more than the write deadline to account for calls
|
||||
// overhead, running with -race, etc...
|
||||
if dur > 100*time.Millisecond {
|
||||
|
||||
@@ -636,8 +636,5 @@ func matchLiteral(literal, subject string) bool {
|
||||
li++
|
||||
}
|
||||
// Make sure we have processed all of the literal's chars..
|
||||
if li < ll {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
return li >= ll
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user