Skip to content
This repository was archived by the owner on Oct 23, 2022. It is now read-only.

Remove config file handling #393

Merged
merged 2 commits into from
Sep 23, 2020
Merged

Conversation

koivunej
Copy link
Collaborator

@koivunej koivunej commented Sep 23, 2020

This PR wipes out the config handling from ipfs, IpfsOptions::new, and UninitializedIpfs::default.

@koivunej koivunej mentioned this pull request Sep 23, 2020
24 tasks
@koivunej koivunej force-pushed the remove_config_file_handling branch from 2b97938 to 1c60859 Compare September 23, 2020 10:35
Copy link
Member

@ljedrz ljedrz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

always feels good to trim some config fat
LGTM 👌

Joonas Koivunen added 2 commits September 23, 2020 15:33
rationale for `new`: IpfsOptions is already a struct with only pub
fields, explaining them again in a doc comment would be useless.

rationale for `default`: config file loading is quite out of place being
*inside* the library. configuration is an applciation level concern.

this also removes UninitializedIpfs::default and replaces their uses
with IpfsOptions::inmemory_with_generated_keys or direct struct
creation.
rationale: these are now unused, and config handling is best to do at
the application level, not in a library.
@koivunej koivunej force-pushed the remove_config_file_handling branch from 1c60859 to db4f038 Compare September 23, 2020 12:33
@koivunej koivunej marked this pull request as ready for review September 23, 2020 12:33
@koivunej
Copy link
Collaborator Author

Rebased on top of latest master following #394 merge. No surprises. I always want to await for CI but realize it is unnecessary with bors.

bors r+

@koivunej
Copy link
Collaborator Author

Cancelled the branch CI.

@bors
Copy link
Contributor

bors bot commented Sep 23, 2020

Build succeeded:

@bors bors bot merged commit e1ef16f into rs-ipfs:master Sep 23, 2020
@koivunej koivunej deleted the remove_config_file_handling branch September 24, 2020 12:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants