Skip to content

Commit

Permalink
PinSerial.ToPin(): use pinOptions.
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
  • Loading branch information
hsanjuan committed Feb 24, 2019
1 parent 1003f93 commit 3fccc56
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions api/types.go
Expand Up @@ -1069,12 +1069,7 @@ func (pins PinSerial) ToPin() Pin {
Type: PinType(pins.Type),
MaxDepth: pins.MaxDepth,
Reference: ref,
PinOptions: PinOptions{
Name: pins.Name,
ReplicationFactorMin: pins.ReplicationFactorMin,
ReplicationFactorMax: pins.ReplicationFactorMax,
ShardSize: pins.ShardSize,
},
PinOptions: pins.PinOptions,
}
}

Expand Down

0 comments on commit 3fccc56

Please sign in to comment.