Skip to content

Fix Caching#703

Closed
isarrider wants to merge 7 commits intovolkszaehler:masterfrom
isarrider:caching
Closed

Fix Caching#703
isarrider wants to merge 7 commits intovolkszaehler:masterfrom
isarrider:caching

Conversation

@isarrider
Copy link
Copy Markdown
Contributor

@isarrider isarrider commented Apr 20, 2026

Caching didnt work for me so I used Claude to get it fixed...
It seems to work, some help might be needed for the formatting,
I think Github throws an error there...

[edit: intended to fix #702 ]

Comment thread src/api/InfluxDB.cpp
snapshot_lastReadingSent = new Reading(*_lastReadingSent);
}

auto rollback_state = [&]() {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

the LLM wasn't allowed to add methods and C++ does not support nested functions,
so it inlines a closure and assigns it to a function pointer variable 😭
LLMs always do this, humans would never...

@r00t-
Copy link
Copy Markdown
Contributor

r00t- commented Apr 23, 2026

thanks...
i think a generic solution that covers all APIs would be much better,
and somebody already implemented that: #704
no idea if i find the time to review either MR :\

@isarrider
Copy link
Copy Markdown
Contributor Author

@r00t- thanks for the comment,
the last time that I coded sth was a loong time ago...

@isarrider
Copy link
Copy Markdown
Contributor Author

and I hope you find the time ;)

@isarrider
Copy link
Copy Markdown
Contributor Author

close in favor of #704

@isarrider isarrider closed this Apr 28, 2026
@r00t-
Copy link
Copy Markdown
Contributor

r00t- commented Apr 29, 2026

close in favor of #704

this may very well be a valid solution, as it's a much smaller changeset and easier to review than #704

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.

Influx write caching does not work

2 participants