Open pongsakornsemsuwan opened 1 month ago
Hello @pongsakornsemsuwan ! First of all - I want to apologize for the late reply. We were a little bit busy and we've missed the notification about the new issue.
I've just tested our Pubnub SDK with Axium
and it seems that some of our features work as expected (publish
, subscribe
) but grant_token
is also failing the build for me.
That's very weird because Permission
should be handled and consumed within the execute
function and the lack of the Send
trait shouldn't be a problem in this case.
Maybe we consume it too late and that's why compiler is not satisfied.
Anyway, I will take a closer look into that problem and fix it as soon as possible.
Okay. I was right. We consume that too late and that's why compiler is not happy with that. I found very simple solution that can be found in #188 .
I will let you know whenever we will this PR.
Until that you can use the branch fix/permissions
in your project to let it compile.
Hi, Newbie here so apologize in advance if this is a stupid question š I'm trying to use the SDK, specifically the grant_token, with axum on multithread runtime environment.
I run into the problem calling following example.
The error I get is
Per my understanding, the cause is that
.resources
takes trait objectOption<[Box<dyn Permission + 'static>]
as a parameter whereas axum requireSend
for trait paremeter (https://github.com/tokio-rs/axum/discussions/2522) to ensure thread safety.Anyone has successfully run the SDK on axum please enlighten me.
Thank you! š