formatted code

This commit is contained in:
Alfred Kamanda 2024-10-28 11:07:59 +03:00
parent 6c3ff0e9db
commit ddae746b9d
Signed by: Alfred-mk
GPG Key ID: 7EA3D01708908703

View File

@ -1219,10 +1219,10 @@ func getVoucherData(ctx context.Context, db *storage.SubPrefixDb, input string)
data[key] = string(value) data[key] = string(value)
} }
symbol, balance, decimal, address := matchVoucher(input, symbol, balance, decimal, address := matchVoucher(input,
data["sym"], data["sym"],
data["bal"], data["bal"],
data["deci"], data["deci"],
data["addr"]) data["addr"])
if symbol == "" { if symbol == "" {
@ -1286,7 +1286,7 @@ func (h *Handlers) storeTemporaryVoucher(ctx context.Context, sessionId string,
func (h *Handlers) SetVoucher(ctx context.Context, sym string, input []byte) (resource.Result, error) { func (h *Handlers) SetVoucher(ctx context.Context, sym string, input []byte) (resource.Result, error) {
var res resource.Result var res resource.Result
var err error var err error
sessionId, ok := ctx.Value("SessionId").(string) sessionId, ok := ctx.Value("SessionId").(string)
if !ok { if !ok {
return res, fmt.Errorf("missing session") return res, fmt.Errorf("missing session")
@ -1308,7 +1308,7 @@ func (h *Handlers) SetVoucher(ctx context.Context, sym string, input []byte) (re
func (h *Handlers) getTemporaryVoucherData(ctx context.Context, sessionId string) (*VoucherMetadata, error) { func (h *Handlers) getTemporaryVoucherData(ctx context.Context, sessionId string) (*VoucherMetadata, error) {
store := h.userdataStore store := h.userdataStore
keys := []utils.DataTyp{ keys := []utils.DataTyp{
utils.DATA_TEMPORARY_SYM, utils.DATA_TEMPORARY_SYM,
utils.DATA_TEMPORARY_BAL, utils.DATA_TEMPORARY_BAL,