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

refactor(peer) some _minor_ safety features #419

Merged
merged 6 commits into from
Dec 8, 2014
Merged

Commits on Dec 8, 2014

  1. fix(peer): use error-checking multiaddr method

    License: MIT
    Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
    Brian Tiger Chow committed Dec 8, 2014
    Configuration menu
    Copy the full SHA
    3f63e50 View commit details
    Browse the repository at this point in the history
  2. refactor(peer) impl peerstore with map

    License: MIT
    Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
    Brian Tiger Chow committed Dec 8, 2014
    Configuration menu
    Copy the full SHA
    1e00779 View commit details
    Browse the repository at this point in the history
  3. refactor(peerstore) s/Get/FindOrCreate

    License: MIT
    Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
    Brian Tiger Chow committed Dec 8, 2014
    Configuration menu
    Copy the full SHA
    73a89e1 View commit details
    Browse the repository at this point in the history
  4. refactor(peer): create peer through peerstore

    for safety!
    
    use mockpeer.WithID methods to create peers in tests
    
    License: MIT
    Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
    Brian Tiger Chow committed Dec 8, 2014
    Configuration menu
    Copy the full SHA
    d77c4bb View commit details
    Browse the repository at this point in the history
  5. feat(peerstore) add peer to peerstore upon instantiation

    License: MIT
    Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
    Brian Tiger Chow committed Dec 8, 2014
    Configuration menu
    Copy the full SHA
    c69f689 View commit details
    Browse the repository at this point in the history
  6. fix(core, peer) helpers to testutil, err handling

    License: MIT
    Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
    Brian Tiger Chow committed Dec 8, 2014
    Configuration menu
    Copy the full SHA
    74eb032 View commit details
    Browse the repository at this point in the history