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

Session's contexts can now be updated #148

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Merge branch 'master' into feat/refresh-context
Antonito committed Jun 22, 2022
commit a8cd89004acf3bc47c981736f1f86231348044fa
1 change: 1 addition & 0 deletions AUTHORS.txt
Original file line number Diff line number Diff line change
@@ -7,6 +7,7 @@ adamroach <[email protected]>
Adrian Cable <[email protected]>
Agniva De Sarker <[email protected]>
Antoine Baché <[email protected]>
Antoine Baché <[email protected]>
Atsushi Watanabe <[email protected]>
backkem <[email protected]>
chenkaiC4 <[email protected]>

Unchanged files with check annotations Beta

func (s *session) UpdateContext(config *Config) error {
localContext, err := CreateContext(config.Keys.LocalMasterKey, config.Keys.LocalMasterSalt, config.Profile, s.localOptions...)
if err != nil {
return err
}

Check warning on line 162 in session.go

Codecov / codecov/patch

session.go#L161-L162

Added lines #L161 - L162 were not covered by tests
remoteContext, err := CreateContext(config.Keys.RemoteMasterKey, config.Keys.RemoteMasterSalt, config.Profile, s.remoteOptions...)
if err != nil {
return err
}

Check warning on line 166 in session.go

Codecov / codecov/patch

session.go#L165-L166

Added lines #L165 - L166 were not covered by tests
s.localContextMutex.Lock()
s.localContext = localContext
You are viewing a condensed version of this merge commit. You can view the full changes here.