Skip to content

Commit

Permalink
refactor: Change C to c in BlockChain in BlockChainGrpcServiceV1
Browse files Browse the repository at this point in the history
  • Loading branch information
s2quake committed Sep 2, 2024
1 parent 0af0ca3 commit da1fae2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Reflection;
using Libplanet.Blockchain;
using Libplanet.Explorer.Indexing;
using Libplanet.Explorer.Interfaces;
using Libplanet.Net;
Expand All @@ -12,7 +13,7 @@ internal sealed class BlockChainContext(
{
public bool Preloaded => false;

public Blockchain.BlockChain BlockChain => blockChainService.BlockChain;
public BlockChain BlockChain => blockChainService.BlockChain;

#pragma warning disable S3011 // Reflection should not be used to increase accessibility ...
public IStore Store
Expand Down
2 changes: 1 addition & 1 deletion sdk/node/Libplanet.Node.Executable/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Communication with gRPC endpoints must be made through a gRPC client. To learn h
""";
using var app = builder.Build();

app.MapGrpcService<BlockChainGrpcServiceV1>();
app.MapGrpcService<BlockchainGrpcServiceV1>();
app.MapGrpcService<SchemaGrpcServiceV1>();
app.MapGet("/", () => handlerMessage);
if (builder.Environment.IsDevelopment())
Expand Down
2 changes: 1 addition & 1 deletion sdk/node/Libplanet.Node.Executable/Protos/blockchain.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ option csharp_namespace = "Libplanet.Node.API";

package node.blockchain.v1;

service BlockChain {
service Blockchain {
rpc GetGenesisBlock (GetGenesisBlockRequest) returns (GetGenesisBlockReply);
rpc GetTip(Empty) returns (GetTipReply);
rpc GetBlock(GetBlockRequest) returns (GetBlockReply);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace Libplanet.Node.API.Services;

public class BlockChainGrpcServiceV1(IReadChainService blockChain) : BlockChain.BlockChainBase
public class BlockchainGrpcServiceV1(IReadChainService blockChain) : Blockchain.BlockchainBase

Check warning on line 8 in sdk/node/Libplanet.Node.Executable/Services/BlockChainGrpcServiceV1.cs

View workflow job for this annotation

GitHub Actions / docs

File name BlockChainGrpcServiceV1.cs doesn't exactly match type BlockchainGrpcServiceV1.

Check warning on line 8 in sdk/node/Libplanet.Node.Executable/Services/BlockChainGrpcServiceV1.cs

View workflow job for this annotation

GitHub Actions / docs

File name BlockChainGrpcServiceV1.cs doesn't exactly match type BlockchainGrpcServiceV1.

Check warning on line 8 in sdk/node/Libplanet.Node.Executable/Services/BlockChainGrpcServiceV1.cs

View workflow job for this annotation

GitHub Actions / check-build

File name BlockChainGrpcServiceV1.cs doesn't exactly match type BlockchainGrpcServiceV1.

Check warning on line 8 in sdk/node/Libplanet.Node.Executable/Services/BlockChainGrpcServiceV1.cs

View workflow job for this annotation

GitHub Actions / check-build

File name BlockChainGrpcServiceV1.cs doesn't exactly match type BlockchainGrpcServiceV1.
{
private readonly IReadChainService _blockChain = blockChain;

Expand Down

0 comments on commit da1fae2

Please sign in to comment.