Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactoring dei Gnutella managers #4

Open
mokagio opened this issue Apr 12, 2012 · 0 comments
Open

Refactoring dei Gnutella managers #4

mokagio opened this issue Apr 12, 2012 · 0 comments

Comments

@mokagio
Copy link
Collaborator

mokagio commented Apr 12, 2012

IMHO penso si potrebbero rifattorizzare i metodi add... dei vari manager per fare in modo che ritornino un True o False, a seconda dell'esito dell'inserimento, in modo da evitare operazioni del tipo

check if the packet is known
if true
  add the packet (the method also check if the packet is known) 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant