🐛 Fix insight register grpc service twice
This commit is contained in:
@@ -39,10 +39,6 @@ using (var scope = app.Services.CreateScope())
|
||||
await db.Database.MigrateAsync();
|
||||
}
|
||||
|
||||
app.MapGrpcService<WebReaderGrpcService>();
|
||||
app.MapGrpcService<WebArticleGrpcService>();
|
||||
app.MapGrpcService<WebFeedGrpcService>();
|
||||
|
||||
app.ConfigureAppMiddleware(builder.Configuration);
|
||||
|
||||
app.UseSwaggerManifest("DysonNetwork.Insight");
|
||||
|
||||
@@ -79,7 +79,7 @@ message ListWebArticlesRequest {
|
||||
string page_token = 3;
|
||||
}
|
||||
|
||||
message ListWebArticlesResponse {
|
||||
message ListWebArticlesResponse {
|
||||
repeated WebArticle articles = 1;
|
||||
string next_page_token = 2;
|
||||
int32 total_size = 3;
|
||||
@@ -141,7 +141,7 @@ message InvalidateLinkPreviewCacheResponse {
|
||||
bool success = 1;
|
||||
}
|
||||
|
||||
service WebArticleService {
|
||||
service WebArticleService {
|
||||
rpc GetWebArticle(GetWebArticleRequest) returns (GetWebArticleResponse);
|
||||
rpc GetWebArticleBatch(GetWebArticleBatchRequest) returns (GetWebArticleBatchResponse);
|
||||
rpc ListWebArticles(ListWebArticlesRequest) returns (ListWebArticlesResponse);
|
||||
|
||||
Reference in New Issue
Block a user