You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by "acehinnnqru (via GitHub)" <gi...@apache.org> on 2023/09/14 16:03:20 UTC
[GitHub] [incubator-opendal] acehinnnqru opened a new pull request, #3072: feat(services/azblob)!: Rewrite azblob methods signature using OpRead/OpStat
acehinnnqru opened a new pull request, #3072:
URL: https://github.com/apache/incubator-opendal/pull/3072
Respect issue: #3064
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-opendal] Xuanwo commented on a diff in pull request #3072: feat(services/azblob): Rewrite azblob methods signature using OpRead/OpStat
Posted by "Xuanwo (via GitHub)" <gi...@apache.org>.
Xuanwo commented on code in PR #3072:
URL: https://github.com/apache/incubator-opendal/pull/3072#discussion_r1326329895
##########
core/src/raw/ops.rs:
##########
@@ -209,6 +209,27 @@ impl From<OpWrite> for PresignOperation {
}
}
+impl From<OpStat> for OpRead {
Review Comment:
Hi, OpenDAL prioritizes optimization for reading as our code typically only needs to be changed once but may be read by multiple developers. So we will spend more time to write readable and maintainable code instead.
I can see the potential benefit of converting between `OpRead` and `OpStat` since they share most fields. However, allowing convert `OpRead`/`OpStat` makes reader feel confused. Everytime we read a `into()`, we need to figure which type we are using.
So I prefer to remove those changes.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-opendal] Xuanwo merged pull request #3072: feat(services/azblob): Rewrite azblob methods signature using OpRead/OpStat
Posted by "Xuanwo (via GitHub)" <gi...@apache.org>.
Xuanwo merged PR #3072:
URL: https://github.com/apache/incubator-opendal/pull/3072
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org