From 3dd5a4ee09bdc2987039c59f50bcfcd178af3dc8 Mon Sep 17 00:00:00 2001 From: Matt Bostock Date: Fri, 14 Apr 2017 21:37:28 +0100 Subject: [PATCH] db: Add comment: Appender not goroutine safe --- db.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/db.go b/db.go index 3ef983745..a3b1d6488 100644 --- a/db.go +++ b/db.go @@ -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