Skip to content

Conversation

@kinyoklion
Copy link
Member

No description provided.

@kinyoklion kinyoklion marked this pull request as ready for review April 11, 2023 22:17
uint64_t version;
};

StreamingDataHandler(std::shared_ptr<IDataSourceUpdateSink> handler,
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: could be good to explain why the sink is shared ownership on the constructor

Copy link
Member Author

Choose a reason for hiding this comment

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

I am not 100% sure what this will actually be. Currently I have a shared pointer to the handler type. But we have not made a data store, so I am not completely sure where the lifetimes of these will be managed. It may just change to a pointer.

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll make a ticket.

Copy link
Member Author

Choose a reason for hiding this comment

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

Logger const& logger_;
std::shared_ptr<launchdarkly::sse::Client> client_;

inline static const std::string streaming_path_ = "/meval";
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure if this is in the next PR, but this could be extracted into Defaults for the client SDK

Copy link
Member Author

Choose a reason for hiding this comment

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

I had not considered putting the paths in the defaults.

Copy link
Member Author

Choose a reason for hiding this comment

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

The whole process of making a streaming URL is different. So I am not sure on this yet.

Copy link
Member Author

Choose a reason for hiding this comment

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

kinyoklion and others added 2 commits April 12, 2023 16:09
Co-authored-by: Casey Waldren <cwaldren@launchdarkly.com>
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.

4 participants