-
Notifications
You must be signed in to change notification settings - Fork 13
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
server: Add GetSecret, GetSecrets and SetSecret implementation #153
Conversation
8784f6d
to
b118363
Compare
52d38b1
to
65d63ec
Compare
let mut secrets = HashMap::new(); | ||
let collections = self.collections.lock().await; | ||
|
||
'outer: for collection in collections.iter() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aren't the items paths have the collection in their path? so can we use that to figure out the corresponding collections of each item or?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why though :) is it bad practice to use a labeled loop block?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nothing per see, just trying to understand what is the most efficient way to do all of this.
4b46726
to
ed96e28
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
almost there
let mut secrets = HashMap::new(); | ||
let collections = self.collections.lock().await; | ||
|
||
'outer: for collection in collections.iter() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nothing per see, just trying to understand what is the most efficient way to do all of this.
The commit message and it description could use some work, in general. Currently you just duplicate the commit message "title" with the "description". In the description, add any technical information or detail or leave it empty. |
Signed-off-by: Dhanuka Warusadura <dhanuka@gnome.org>
This change adds Secret Service method GetSecrets and Secret Item methods GetSecret and SetSecret.