Skip to content

Commit

Permalink
Uncapitalize doc strings.
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeGruffins committed Apr 27, 2021
1 parent f0ae5f1 commit fedbdf3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions server/asset/eth/rpcclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type rpcclient struct {
ec *ethclient.Client
}

// Connect connects to an ipc socket. It then wraps ethclient's client and
// connect connects to an ipc socket. It then wraps ethclient's client and
// bundles commands in a form we can easil use.
func (c *rpcclient) connect(ctx context.Context, IPC string) error {
client, err := rpc.DialIPC(ctx, IPC)
Expand All @@ -33,14 +33,14 @@ func (c *rpcclient) connect(ctx context.Context, IPC string) error {
return nil
}

// Shutdown shuts down the client.
// shutdown shuts down the client.
func (c *rpcclient) shutdown() {
if c.ec != nil {
c.ec.Close()
}
}

// BestBlockHash gets the best blocks hash at the time of calling. Due to the
// bestBlockHash gets the best blocks hash at the time of calling. Due to the
// speed of Ethereum blocks, this changes often.
func (c *rpcclient) bestBlockHash(ctx context.Context) (common.Hash, error) {
header, err := c.bestHeader(ctx)
Expand All @@ -63,7 +63,7 @@ func (c *rpcclient) bestHeader(ctx context.Context) (*types.Header, error) {
return header, nil
}

// Block gets the block identified by hash.
// block gets the block identified by hash.
func (c *rpcclient) block(ctx context.Context, hash common.Hash) (*types.Block, error) {
block, err := c.ec.BlockByHash(ctx, hash)
if err != nil {
Expand Down

0 comments on commit fedbdf3

Please sign in to comment.