Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion entity/event/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func (registry *Registry) Register(eventName string, eventVersion int, decoder D
registry.decoders[eventType(eventName, eventVersion)] = decoder
}

// IsRegister returns true when the event to decoder mapping is already registered
// IsRegistered returns true when the event to decoder mapping is already registered
func (registry *Registry) IsRegistered(eventName string, eventVersion int) bool {
_, exist := registry.decoders[eventType(eventName, eventVersion)]
return exist
Expand Down
2 changes: 1 addition & 1 deletion entity/projection/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func (manager *StoreBasedManager) projectionRunner(projection Projection) {
for {
latestEventHeight, _ := manager.eventStore.GetLatestHeight()
if latestEventHeight == nil {
logger.Debugf("no event in in the system yet")
logger.Debugf("no event in the system yet")
<-waitFor(5 * time.Second)
continue
}
Expand Down
2 changes: 1 addition & 1 deletion usecase/coin/dec_coin.go
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ func (coins DecCoins) Sort() DecCoins {
// ----------------------------------------------------------------------------
// Parsing

// MustParseDecCoins parses a decimal coin from a string. It behaves the same as ParseDecCoin,
// MustParseDecCoin parses a decimal coin from a string. It behaves the same as ParseDecCoin,
// except it panics on any error.
func MustParseDecCoin(coinStr string) DecCoin {
decCoin, err := ParseDecCoin(coinStr)
Expand Down
2 changes: 1 addition & 1 deletion usecase/coin/uint.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func (u Uint) BigInt() *big.Int {
return new(big.Int).Set(u.i)
}

// NewUintFromBigUint constructs Uint from big.Uint
// NewUintFromBigInt constructs Uint from big.Int
func NewUintFromBigInt(i *big.Int) Uint {
u, err := checkNewUint(i)
if err != nil {
Expand Down