mirror of
https://github.com/prometheus/prometheus
synced 2025-04-01 00:06:53 +00:00
db: Add comment: Appender not goroutine safe
This commit is contained in:
parent
25d4546518
commit
3dd5a4ee09
2
db.go
2
db.go
@ -73,6 +73,8 @@ type Options struct {
|
|||||||
|
|
||||||
// Appender allows appending a batch of data. It must be completed with a
|
// Appender allows appending a batch of data. It must be completed with a
|
||||||
// call to Commit or Rollback and must not be reused afterwards.
|
// call to Commit or Rollback and must not be reused afterwards.
|
||||||
|
//
|
||||||
|
// Operations on the Appender interface are not goroutine-safe.
|
||||||
type Appender interface {
|
type Appender interface {
|
||||||
// Add adds a sample pair for the given series. A reference number is
|
// 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
|
// returned which can be used to add further samples in the same or later
|
||||||
|
Loading…
Reference in New Issue
Block a user