{"action":"created","comment":{"url":"https://api.github.com/repos/witnet/witnet-rust/pulls/comments/232225103","pull_request_review_id":173373761,"id":232225103,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMjIyNTEwMw==","diff_hunk":"@@ -92,21 +92,36 @@ The way other actors will communicate with the storage manager is:\n \n These are the messages sent by the peers manager:\n \n-| Message   | Destination   | Input type | Output type                 | Description               |\n-| --------- | ------------- | ---------- | --------------------------- | ------------------------- |\n-| GetConfig | ConfigManager | `()`       | `Result<Config, io::Error>` | Request the configuration |\n-\n-It is foreseen that in the future, the peers manager will call the `Storage Manager` to store a list of known peers.\n+| Message   | Destination     | Input type                                | Output type                 | Description                               |\n+| --------- | --------------- | ----------------------------------------- | --------------------------- | ----------------------------------------- |\n+| GetConfig | ConfigManager   | `()`                                      | `Result<Config, io::Error>` | Request the configuration                 |\n+| Get       | StorageManager  | `&'static [u8]`                           | `StorageResult<Option<T>>`  | Wrapper to RocksStorage `get()` method    |\n+| Put       | StorageManager  | `&'static [u8]`, `Vec<u8>`                | `StorageResult<()>`         | Wrapper to RocksStorage `put()` method    |","path":"docs/architecture/managers/peers-manager.md","position":13,"original_position":13,"commit_id":"b235fae964c3242c806f3035de684c7decd3887c","original_commit_id":"b235fae964c3242c806f3035de684c7decd3887c","user":{"login":"aesedepece","id":1316439,"node_id":"MDQ6VXNlcjEzMTY0Mzk=","avatar_url":"https://avatars0.githubusercontent.com/u/1316439?v=4","gravatar_id":"","url":"https://api.github.com/users/aesedepece","html_url":"https://github.com/aesedepece","followers_url":"https://api.github.com/users/aesedepece/followers","following_url":"https://api.github.com/users/aesedepece/following{/other_user}","gists_url":"https://api.github.com/users/aesedepece/gists{/gist_id}","starred_url":"https://api.github.com/users/aesedepece/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aesedepece/subscriptions","organizations_url":"https://api.github.com/users/aesedepece/orgs","repos_url":"https://api.github.com/users/aesedepece/repos","events_url":"https://api.github.com/users/aesedepece/events{/privacy}","received_events_url":"https://api.github.com/users/aesedepece/received_events","type":"User","site_admin":false},"body":"```suggestion\r\n| `Put`       | `StorageManager`  | `&'static [u8]`, `Vec<u8>`                | `StorageResult<()>`         | Wrapper to RocksStorage `put()` method    |\r\n```","created_at":"2018-11-09T11:36:46Z","updated_at":"2018-11-09T11:37:53Z","html_url":"https://github.com/witnet/witnet-rust/pull/117#discussion_r232225103","pull_request_url":"https://api.github.com/repos/witnet/witnet-rust/pulls/117","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/witnet/witnet-rust/pulls/comments/232225103"},"html":{"href":"https://github.com/witnet/witnet-rust/pull/117#discussion_r232225103"},"pull_request":{"href":"https://api.github.com/repos/witnet/witnet-rust/pulls/117"}}},"pull_request":{"url":"https://api.github.com/repos/witnet/witnet-rust/pulls/117","id":229409656,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI5NDA5NjU2","html_url":"https://github.com/witnet/witnet-rust/pull/117","diff_url":"https://github.com/witnet/witnet-rust/pull/117.diff","patch_url":"https://github.com/witnet/witnet-rust/pull/117.patch","issue_url":"https://api.github.com/repos/witnet/witnet-rust/issues/117","number":117,"state":"open","locked":false,"title":"feat(managers): make StorageManager query peers from storage","user":{"login":"tmpolaczyk","id":44604217,"node_id":"MDQ6VXNlcjQ0NjA0MjE3","avatar_url":"https://avatars0.githubusercontent.com/u/44604217?v=4","gravatar_id":"","url":"https://api.github.com/users/tmpolaczyk","html_url":"https://github.com/tmpolaczyk","followers_url":"https://api.github.com/users/tmpolaczyk/followers","following_url":"https://api.github.com/users/tmpolaczyk/following{/other_user}","gists_url":"https://api.github.com/users/tmpolaczyk/gists{/gist_id}","starred_url":"https://api.github.com/users/tmpolaczyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmpolaczyk/subscriptions","organizations_url":"https://api.github.com/users/tmpolaczyk/orgs","repos_url":"https://api.github.com/users/tmpolaczyk/repos","events_url":"https://api.github.com/users/tmpolaczyk/events{/privacy}","received_events_url":"https://api.github.com/users/tmpolaczyk/received_events","type":"User","site_admin":false},"body":"Closes #98 ","created_at":"2018-11-08T15:42:01Z","updated_at":"2018-11-09T11:37:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a4931ecd15005450bf42f171b328165b08d49389","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/witnet/witnet-rust/pulls/117/commits","review_comments_url":"https://api.github.com/repos/witnet/witnet-rust/pulls/117/comments","review_comment_url":"https://api.github.com/repos/witnet/witnet-rust/pulls/comments{/number}","comments_url":"https://api.github.com/repos/witnet/witnet-rust/issues/117/comments","statuses_url":"https://api.github.com/repos/witnet/witnet-rust/statuses/b235fae964c3242c806f3035de684c7decd3887c","head":{"label":"tmpolaczyk:load_peers_storage","ref":"load_peers_storage","sha":"b235fae964c3242c806f3035de684c7decd3887c","user":{"login":"tmpolaczyk","id":44604217,"node_id":"MDQ6VXNlcjQ0NjA0MjE3","avatar_url":"https://avatars0.githubusercontent.com/u/44604217?v=4","gravatar_id":"","url":"https://api.github.com/users/tmpolaczyk","html_url":"https://github.com/tmpolaczyk","followers_url":"https://api.github.com/users/tmpolaczyk/followers","following_url":"https://api.github.com/users/tmpolaczyk/following{/other_user}","gists_url":"https://api.github.com/users/tmpolaczyk/gists{/gist_id}","starred_url":"https://api.github.com/users/tmpolaczyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmpolaczyk/subscriptions","organizations_url":"https://api.github.com/users/tmpolaczyk/orgs","repos_url":"https://api.github.com/users/tmpolaczyk/repos","events_url":"https://api.github.com/users/tmpolaczyk/events{/privacy}","received_events_url":"https://api.github.com/users/tmpolaczyk/received_events","type":"User","site_admin":false},"repo":{"id":155549207,"node_id":"MDEwOlJlcG9zaXRvcnkxNTU1NDkyMDc=","name":"witnet-rust","full_name":"tmpolaczyk/witnet-rust","private":false,"owner":{"login":"tmpolaczyk","id":44604217,"node_id":"MDQ6VXNlcjQ0NjA0MjE3","avatar_url":"https://avatars0.githubusercontent.com/u/44604217?v=4","gravatar_id":"","url":"https://api.github.com/users/tmpolaczyk","html_url":"https://github.com/tmpolaczyk","followers_url":"https://api.github.com/users/tmpolaczyk/followers","following_url":"https://api.github.com/users/tmpolaczyk/following{/other_user}","gists_url":"https://api.github.com/users/tmpolaczyk/gists{/gist_id}","starred_url":"https://api.github.com/users/tmpolaczyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmpolaczyk/subscriptions","organizations_url":"https://api.github.com/users/tmpolaczyk/orgs","repos_url":"https://api.github.com/users/tmpolaczyk/repos","events_url":"https://api.github.com/users/tmpolaczyk/events{/privacy}","received_events_url":"https://api.github.com/users/tmpolaczyk/received_events","type":"User","site_admin":false},"html_url":"https://github.com/tmpolaczyk/witnet-rust","description":"An in-progress open source implementation of the Witnet protocol written in Rust.","fork":true,"url":"https://api.github.com/repos/tmpolaczyk/witnet-rust","forks_url":"https://api.github.com/repos/tmpolaczyk/witnet-rust/forks","keys_url":"https://api.github.com/repos/tmpolaczyk/witnet-rust/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tmpolaczyk/witnet-rust/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tmpolaczyk/witnet-rust/teams","hooks_url":"https://api.github.com/repos/tmpolaczyk/witnet-rust/hooks","issue_events_url":"https://api.github.com/repos/tmpolaczyk/witnet-rust/issues/events{/number}","events_url":"https://api.github.com/repos/tmpolaczyk/witnet-rust/events","assignees_url":"https://api.github.com/repos/tmpolaczyk/witnet-rust/assignees{/user}","branches_url":"https://api.github.com/repos/tmpolaczyk/witnet-rust/branches{/branch}","tags_url":"https://api.github.com/repos/tmpolaczyk/witnet-rust/tags","blobs_url":"https://api.github.com/repos/tmpolaczyk/witnet-rust/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tmpolaczyk/witnet-rust/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tmpolaczyk/witnet-rust/git/refs{/sha}","trees_url":"https://api.github.com/repos/tmpolaczyk/witnet-rust/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tmpolaczyk/witnet-rust/statuses/{sha}","languages_url":"https://api.github.com/repos/tmpolaczyk/witnet-rust/languages","stargazers_url":"https://api.github.com/repos/tmpolaczyk/witnet-rust/stargazers","contributors_url":"https://api.github.com/repos/tmpolaczyk/witnet-rust/contributors","subscribers_url":"https://api.github.com/repos/tmpolaczyk/witnet-rust/subscribers","subscription_url":"https://api.github.com/repos/tmpolaczyk/witnet-rust/subscription","commits_url":"https://api.github.com/repos/tmpolaczyk/witnet-rust/commits{/sha}","git_commits_url":"https://api.github.com/repos/tmpolaczyk/witnet-rust/git/commits{/sha}","comments_url":"https://api.github.com/repos/tmpolaczyk/witnet-rust/comments{/number}","issue_comment_url":"https://api.github.com/repos/tmpolaczyk/witnet-rust/issues/comments{/number}","contents_url":"https://api.github.com/repos/tmpolaczyk/witnet-rust/contents/{+path}","compare_url":"https://api.github.com/repos/tmpolaczyk/witnet-rust/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tmpolaczyk/witnet-rust/merges","archive_url":"https://api.github.com/repos/tmpolaczyk/witnet-rust/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tmpolaczyk/witnet-rust/downloads","issues_url":"https://api.github.com/repos/tmpolaczyk/witnet-rust/issues{/number}","pulls_url":"https://api.github.com/repos/tmpolaczyk/witnet-rust/pulls{/number}","milestones_url":"https://api.github.com/repos/tmpolaczyk/witnet-rust/milestones{/number}","notifications_url":"https://api.github.com/repos/tmpolaczyk/witnet-rust/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tmpolaczyk/witnet-rust/labels{/name}","releases_url":"https://api.github.com/repos/tmpolaczyk/witnet-rust/releases{/id}","deployments_url":"https://api.github.com/repos/tmpolaczyk/witnet-rust/deployments","created_at":"2018-10-31T11:51:54Z","updated_at":"2018-11-05T15:24:23Z","pushed_at":"2018-11-08T16:03:29Z","git_url":"git://github.com/tmpolaczyk/witnet-rust.git","ssh_url":"git@github.com:tmpolaczyk/witnet-rust.git","clone_url":"https://github.com/tmpolaczyk/witnet-rust.git","svn_url":"https://github.com/tmpolaczyk/witnet-rust","homepage":"https://docs.witnet.io","size":1472,"stargazers_count":0,"watchers_count":0,"language":"Rust","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"witnet:master","ref":"master","sha":"89e850bd4d631bec9daa06ae88f40e96aa238cd0","user":{"login":"witnet","id":33759927,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMzNzU5OTI3","avatar_url":"https://avatars0.githubusercontent.com/u/33759927?v=4","gravatar_id":"","url":"https://api.github.com/users/witnet","html_url":"https://github.com/witnet","followers_url":"https://api.github.com/users/witnet/followers","following_url":"https://api.github.com/users/witnet/following{/other_user}","gists_url":"https://api.github.com/users/witnet/gists{/gist_id}","starred_url":"https://api.github.com/users/witnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/witnet/subscriptions","organizations_url":"https://api.github.com/users/witnet/orgs","repos_url":"https://api.github.com/users/witnet/repos","events_url":"https://api.github.com/users/witnet/events{/privacy}","received_events_url":"https://api.github.com/users/witnet/received_events","type":"Organization","site_admin":false},"repo":{"id":120209021,"node_id":"MDEwOlJlcG9zaXRvcnkxMjAyMDkwMjE=","name":"witnet-rust","full_name":"witnet/witnet-rust","private":false,"owner":{"login":"witnet","id":33759927,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMzNzU5OTI3","avatar_url":"https://avatars0.githubusercontent.com/u/33759927?v=4","gravatar_id":"","url":"https://api.github.com/users/witnet","html_url":"https://github.com/witnet","followers_url":"https://api.github.com/users/witnet/followers","following_url":"https://api.github.com/users/witnet/following{/other_user}","gists_url":"https://api.github.com/users/witnet/gists{/gist_id}","starred_url":"https://api.github.com/users/witnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/witnet/subscriptions","organizations_url":"https://api.github.com/users/witnet/orgs","repos_url":"https://api.github.com/users/witnet/repos","events_url":"https://api.github.com/users/witnet/events{/privacy}","received_events_url":"https://api.github.com/users/witnet/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/witnet/witnet-rust","description":"An in-progress open source implementation of the Witnet protocol written in Rust.","fork":false,"url":"https://api.github.com/repos/witnet/witnet-rust","forks_url":"https://api.github.com/repos/witnet/witnet-rust/forks","keys_url":"https://api.github.com/repos/witnet/witnet-rust/keys{/key_id}","collaborators_url":"https://api.github.com/repos/witnet/witnet-rust/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/witnet/witnet-rust/teams","hooks_url":"https://api.github.com/repos/witnet/witnet-rust/hooks","issue_events_url":"https://api.github.com/repos/witnet/witnet-rust/issues/events{/number}","events_url":"https://api.github.com/repos/witnet/witnet-rust/events","assignees_url":"https://api.github.com/repos/witnet/witnet-rust/assignees{/user}","branches_url":"https://api.github.com/repos/witnet/witnet-rust/branches{/branch}","tags_url":"https://api.github.com/repos/witnet/witnet-rust/tags","blobs_url":"https://api.github.com/repos/witnet/witnet-rust/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/witnet/witnet-rust/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/witnet/witnet-rust/git/refs{/sha}","trees_url":"https://api.github.com/repos/witnet/witnet-rust/git/trees{/sha}","statuses_url":"https://api.github.com/repos/witnet/witnet-rust/statuses/{sha}","languages_url":"https://api.github.com/repos/witnet/witnet-rust/languages","stargazers_url":"https://api.github.com/repos/witnet/witnet-rust/stargazers","contributors_url":"https://api.github.com/repos/witnet/witnet-rust/contributors","subscribers_url":"https://api.github.com/repos/witnet/witnet-rust/subscribers","subscription_url":"https://api.github.com/repos/witnet/witnet-rust/subscription","commits_url":"https://api.github.com/repos/witnet/witnet-rust/commits{/sha}","git_commits_url":"https://api.github.com/repos/witnet/witnet-rust/git/commits{/sha}","comments_url":"https://api.github.com/repos/witnet/witnet-rust/comments{/number}","issue_comment_url":"https://api.github.com/repos/witnet/witnet-rust/issues/comments{/number}","contents_url":"https://api.github.com/repos/witnet/witnet-rust/contents/{+path}","compare_url":"https://api.github.com/repos/witnet/witnet-rust/compare/{base}...{head}","merges_url":"https://api.github.com/repos/witnet/witnet-rust/merges","archive_url":"https://api.github.com/repos/witnet/witnet-rust/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/witnet/witnet-rust/downloads","issues_url":"https://api.github.com/repos/witnet/witnet-rust/issues{/number}","pulls_url":"https://api.github.com/repos/witnet/witnet-rust/pulls{/number}","milestones_url":"https://api.github.com/repos/witnet/witnet-rust/milestones{/number}","notifications_url":"https://api.github.com/repos/witnet/witnet-rust/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/witnet/witnet-rust/labels{/name}","releases_url":"https://api.github.com/repos/witnet/witnet-rust/releases{/id}","deployments_url":"https://api.github.com/repos/witnet/witnet-rust/deployments","created_at":"2018-02-04T17:59:46Z","updated_at":"2018-11-09T05:45:11Z","pushed_at":"2018-11-08T16:54:54Z","git_url":"git://github.com/witnet/witnet-rust.git","ssh_url":"git@github.com:witnet/witnet-rust.git","clone_url":"https://github.com/witnet/witnet-rust.git","svn_url":"https://github.com/witnet/witnet-rust","homepage":"https://docs.witnet.io","size":1519,"stargazers_count":28,"watchers_count":28,"language":"Rust","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":13,"mirror_url":null,"archived":false,"open_issues_count":43,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":13,"open_issues":43,"watchers":28,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/witnet/witnet-rust/pulls/117"},"html":{"href":"https://github.com/witnet/witnet-rust/pull/117"},"issue":{"href":"https://api.github.com/repos/witnet/witnet-rust/issues/117"},"comments":{"href":"https://api.github.com/repos/witnet/witnet-rust/issues/117/comments"},"review_comments":{"href":"https://api.github.com/repos/witnet/witnet-rust/pulls/117/comments"},"review_comment":{"href":"https://api.github.com/repos/witnet/witnet-rust/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/witnet/witnet-rust/pulls/117/commits"},"statuses":{"href":"https://api.github.com/repos/witnet/witnet-rust/statuses/b235fae964c3242c806f3035de684c7decd3887c"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"aesedepece"}}