Skip to content

Initialising p2p_protocol with self.  #2

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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