Skip to content

Commit

Permalink
Added authorship in currency management (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
newm4n authored Jul 11, 2021
1 parent 8182ba0 commit 78e5474
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ManagerInMemoryImpl.go
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,7 @@ func (em *InMemoryExchangeManager) SetDenom(context context.Context, denom *big.

// SetExchangeValueOf set the specified value as denominator value for that speciffic currency.
// This function should return error if the currency specified is not exist.
func (em *InMemoryExchangeManager) SetExchangeValueOf(context context.Context, currency string, exchange *big.Float) error {
func (em *InMemoryExchangeManager) SetExchangeValueOf(context context.Context, currency string, exchange *big.Float, author string) error {
if exist, err := em.IsCurrencyExist(currency); err == nil {
if exist {
em.exchangeMap[currency] = exchange
Expand Down
2 changes: 1 addition & 1 deletion ManagerSpec.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ type ExchangeManager interface {

// SetExchangeValueOf set the specified value as denominator value for that speciffic currency.
// This function should return error if the currency specified is not exist.
SetExchangeValueOf(context context.Context, currency string, exchange *big.Float) error
SetExchangeValueOf(context context.Context, currency string, exchange *big.Float, author string) error
// GetExchangeValueOf get the denominator value of the specified currency.
// Error should be returned if the specified currency is not exist.
GetExchangeValueOf(context context.Context, currency string) (*big.Float, error)
Expand Down

0 comments on commit 78e5474

Please sign in to comment.