Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[typedb] forwarding state machine#115

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
purcell merged 3 commits intomainfromtypedb-forwarding-state-machine
Dec 18, 2025

Conversation

@purcell
Copy link
Contributor

This PR makes the state machine explicit in ForwardingBuffer, and also bumps the minimum Python version to 3.10, since thematch statement is used, and not available in 3.9.

The minimum backend runtime version of Python for localstack seems to now be 3.13, so for maximum compatibility we should probably align that across all extensions?

(I also bumped the version of this extension as part of this PR.)

whummer reacted with rocket emoji
Copy link
Member

@whummerwhummer left a comment

Choose a reason for hiding this comment

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

Looks great@purcell - much cleaner with the explicit state management viaForwardingState! 👍

caseForwardingState.UNDECIDED:
self.buffer.append(data)

ifheaders:=get_headers_from_data_stream(self.buffer):
Copy link
Member

Choose a reason for hiding this comment

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

small nitpick: I guess we could reverse the logic withif not ... andreturn, to reduce the level of indentation. (but really not critical, more a matter of taste / personal preference, so feel free to leave as-is :) )

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Yeah, I think it could go either way. I personally find it clearer like this, but if the code grew longer, I'd switch it.

@purcellpurcell merged commite20717d intomainDec 18, 2025
1 check passed
@whummerwhummer deleted the typedb-forwarding-state-machine branchDecember 18, 2025 09:50
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@whummerwhummerwhummer approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@purcell@whummer

[8]ページ先頭

©2009-2025 Movatter.jp