Skip to content

Drifting Avrora.Storage behavior implementations #127

@Strech

Description

@Strech

Somehow dialyzer misses that some storages accept types they are not supposed to.

Behavior for the value in put(key, value) defined value as an Avrora.Schema

@callback get(key :: schema_id()) :: {:ok, result :: nil | Avrora.Schema.t()} | {:error, reason :: term()}
@callback put(key :: schema_id(), value :: Avrora.Schema.t()) ::

But here we are restricting it to binary

def put(key, value) when is_binary(key) and is_binary(value) do

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinginternal APIAnything related to the internal API and implementations

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions