(targetUsers []proto.AccountAddress, user proto.AccountAddress)
| 755 | } |
| 756 | |
| 757 | func isProviderUserMatch(targetUsers []proto.AccountAddress, user proto.AccountAddress) (match bool) { |
| 758 | if len(targetUsers) > 0 { |
| 759 | for _, u := range targetUsers { |
| 760 | if u == user { |
| 761 | match = true |
| 762 | } |
| 763 | } |
| 764 | } else { |
| 765 | match = true |
| 766 | } |
| 767 | return |
| 768 | } |
| 769 | |
| 770 | func isProviderReqMatch(po *types.ProviderProfile, req *types.CreateDatabase) (match bool, err error) { |
| 771 | if po.GasPrice > req.GasPrice { |
no outgoing calls
no test coverage detected