Skip to content

Validate queue options and exit if option is not acceptable #5

@silviucpp

Description

@silviucpp

Hello,

Having the following queue:

{ok, Q}= esq:new( "priv/client_producer", [{tts, 0}, {capacity, 0}]).

After I add few items inside the queue and restart the app and do:

esq:head(Q).

I always receive undefined but esq:deq always returns items. I'm expecting head to return same stuff as deq but without removing the item from queue.

I'm using [{tts, 0}, {capacity, 0}] to make sure all items are going on the disk directly. I'm wrong ?

Silviu

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions