db: Add comment: Appender not goroutine safe

This commit is contained in:
Matt Bostock 2017-04-14 21:37:28 +01:00
parent 25d4546518
commit 3dd5a4ee09
1 changed files with 2 additions and 0 deletions

2
db.go
View File

@ -73,6 +73,8 @@ type Options struct {
// Appender allows appending a batch of data. It must be completed with a
// call to Commit or Rollback and must not be reused afterwards.
//
// Operations on the Appender interface are not goroutine-safe.
type Appender interface {
// Add adds a sample pair for the given series. A reference number is
// returned which can be used to add further samples in the same or later