tech(tsdb): abort batch procces when context closes

This commit is contained in:
bergquist 2016-10-03 14:33:47 +02:00
parent d889415c4b
commit 5a201cfd35

View File

@ -51,6 +51,8 @@ func HandleRequest(ctx context.Context, req *Request) (*Response, error) {
go batch.process(ctx, context)
}
}
case <-ctx.Done():
return nil, ctx.Err()
}
}