From 1ad94cc39ee0a6dfcb1fa19f8603b05df8530ae8 Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Thu, 8 Jul 2021 18:31:06 +0200 Subject: update docs --- skate/zipkey/batch.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'skate/zipkey') diff --git a/skate/zipkey/batch.go b/skate/zipkey/batch.go index 85d1d35..9924b65 100644 --- a/skate/zipkey/batch.go +++ b/skate/zipkey/batch.go @@ -17,7 +17,7 @@ type Batcher struct { closing bool // https://stackoverflow.com/q/16105325/89391 } -// NewBatcher set ups a new Batcher. +// NewBatcher set ups a new Batcher with a batch size of 1000. func NewBatcher(gf groupFunc) *Batcher { return NewBatcherSize(gf, 1000) } @@ -50,8 +50,8 @@ func (b *Batcher) Close() error { return b.err } -// GroupFunc implement the groupFunc type. Not thread safe. Panics if called -// after Close. +// GroupFunc is a drop for a groupFunc. Use this function, where you used +// grouper before. Not thread safe. Panics if called after Close. func (b *Batcher) GroupFunc(g *Group) error { if b.closing { panic("cannot call GroupFunc after Close") -- cgit v1.2.3