add interface assertions for all clients

This commit is contained in:
Anton Kaliaev
2017-11-21 17:50:06 -06:00
parent e6fdc98aeb
commit f6a79dd7c5
3 changed files with 6 additions and 0 deletions

View File

@ -23,6 +23,8 @@ const reqQueueSize = 256 // TODO make configurable
// const maxResponseSize = 1048576 // 1MB TODO make configurable
const flushThrottleMS = 20 // Don't wait longer than...
var _ Client = (*socketClient)(nil)
// This is goroutine-safe, but users should beware that
// the application in general is not meant to be interfaced
// with concurrent callers.