Reference types don't need pointers
This commit is contained in:
parent
4ca14ecad7
commit
965a81dfc1
|
@ -30,7 +30,7 @@ func (cl *Client) GetBlocks(
|
|||
startSlot uint64,
|
||||
endSlot *uint64, // optional
|
||||
commitment CommitmentType, // optional
|
||||
) (out *BlocksResult, err error) {
|
||||
) (out BlocksResult, err error) {
|
||||
params := []interface{}{startSlot}
|
||||
if endSlot != nil {
|
||||
params = append(params, endSlot)
|
||||
|
|
|
@ -23,7 +23,7 @@ import (
|
|||
// GetLeaderSchedule returns the leader schedule for current epoch.
|
||||
func (cl *Client) GetLeaderSchedule(
|
||||
ctx context.Context,
|
||||
) (out *GetLeaderScheduleResult, err error) {
|
||||
) (out GetLeaderScheduleResult, err error) {
|
||||
return cl.GetLeaderScheduleWithOpts(
|
||||
ctx,
|
||||
nil,
|
||||
|
@ -46,7 +46,7 @@ type GetLeaderScheduleOpts struct {
|
|||
func (cl *Client) GetLeaderScheduleWithOpts(
|
||||
ctx context.Context,
|
||||
opts *GetLeaderScheduleOpts,
|
||||
) (out *GetLeaderScheduleResult, err error) {
|
||||
) (out GetLeaderScheduleResult, err error) {
|
||||
params := []interface{}{}
|
||||
if opts != nil {
|
||||
if opts.Epoch != nil {
|
||||
|
|
Loading…
Reference in New Issue