Skip to content

Initialising p2p_protocol with self.  #2

@doneforaiur

Description

@doneforaiur

I got the error stating that handle_message missing positional argument writer but writer is supplied to the function. It seems that handle_message can't get self, that is p2p_protocol.

self.p2p_protocol = p2p_protocol

I've changed this section to self.p2p_protocol = p2p_protocol(self) and it's working as intended. Is this normal or am I missing something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions