Skip to content

Commit

Permalink
fix: initiate profiles map in ListConnections
Browse files Browse the repository at this point in the history
  • Loading branch information
tinyzimmer committed Nov 11, 2023
1 parent c7a3618 commit b638b68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cmd/daemoncmd/profile_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func (s *profileStore) Get(ctx context.Context, id ProfileID) (Profile, error) {
func (s *profileStore) List(ctx context.Context) (Profiles, error) {
s.mu.RLock()
defer s.mu.RUnlock()
var profiles Profiles
profiles := make(Profiles)
err := s.st.IterPrefix(ctx, NamespacedPrefixFromContext(ctx), func(key, value []byte) error {
var profile Profile
err := profile.UnmarshalProto(value)
Expand Down

0 comments on commit b638b68

Please sign in to comment.