Skip to content

Commit

Permalink
Merge pull request #3 from coherentpath/init-lib
Browse files Browse the repository at this point in the history
Fix typespec bug
  • Loading branch information
gdwoolbert3 authored Nov 17, 2023
2 parents 3346124 + dc2fd6f commit c7c5a73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/buffer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ defmodule Buffer do
the buffer will be flushed async.
"""
@spec insert_batch(GenServer.server(), Enumerable.t(), keyword()) ::
{:ok | non_neg_integer()} | {:error, atom()}
{:ok, non_neg_integer()} | {:error, atom()}
def insert_batch(buffer, items, opts \\ []) do
with {:ok, {partitioner, _}} <- fetch_buffer(buffer) do
{:ok, do_insert_batch(buffer, partitioner, items, opts)}
Expand Down

0 comments on commit c7c5a73

Please sign in to comment.