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

feat: session space #427

Merged
merged 4 commits into from
Jan 11, 2023
Merged

feat: session space #427

merged 4 commits into from
Jan 11, 2023

Conversation

huaxiabuluo
Copy link
Contributor

What type of PR is this?

  • bug
  • feature
  • enhancement

What problem(s) does this PR solve?

Issue(s) number:

Description:

How do you solve it?

Special notes for your reviewer, ex. impact of this fix, design document, etc:

server/api/studio/pkg/ws/client.go Outdated Show resolved Hide resolved
server/api/studio/pkg/ws/client.go Outdated Show resolved Hide resolved

type MutexMap[T any] struct {
mu sync.RWMutex
data map[string]T
Copy link
Contributor

@veezhang veezhang Jan 10, 2023

Choose a reason for hiding this comment

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

Panic without init.

Comment on lines +61 to +64
shouldSwitch := ok && reqSpace != "" && currentSpace != reqSpace
if !shouldSwitch {
return nil
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not if !ok || reqSpace == "" || currentSpace == reqSpace { return nil}?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

make it more semantic

Copy link
Contributor

@hetao92 hetao92 left a comment

Choose a reason for hiding this comment

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

LGTM

@hetao92 hetao92 merged commit 4429f78 into vesoft-inc:master Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants