Skip to content

Commit

Permalink
Merge pull request #157 from project-tsurugi/fix/stream_endpoint
Browse files Browse the repository at this point in the history
correct integer type used in endpoint/stream/stream_response
  • Loading branch information
t-horikawa committed Dec 6, 2023
2 parents 019df22 + 6e9f5b6 commit b5a3e59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/tateyama/endpoint/stream/stream_response.cpp
Expand Up @@ -29,7 +29,7 @@ namespace tateyama::common::stream {
class stream_request;

// class stream_response
stream_response::stream_response(std::shared_ptr<tateyama::common::stream::stream_socket> stream, unsigned char index)
stream_response::stream_response(std::shared_ptr<tateyama::common::stream::stream_socket> stream, std::uint16_t index)
: session_socket_(std::move(stream)), index_(index) {
}

Expand Down
4 changes: 2 additions & 2 deletions src/tateyama/endpoint/stream/stream_response.h
Expand Up @@ -79,7 +79,7 @@ class stream_response : public tateyama::api::server::response {
friend stream_data_channel;

public:
stream_response(std::shared_ptr<tateyama::common::stream::stream_socket> stream, unsigned char index);
stream_response(std::shared_ptr<tateyama::common::stream::stream_socket> stream, std::uint16_t index);
stream_response() = delete;

tateyama::status body(std::string_view body) override;
Expand All @@ -93,7 +93,7 @@ class stream_response : public tateyama::api::server::response {
}
private:
std::shared_ptr<tateyama::common::stream::stream_socket> session_socket_;
unsigned char index_;
std::uint16_t index_;

std::string message_{};

Expand Down

0 comments on commit b5a3e59

Please sign in to comment.