Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

all: fix various spelling errors #386

Merged
merged 6 commits into from
Jan 29, 2025
Merged
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
4 changes: 2 additions & 2 deletions config/config.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2024 Hemi Labs, Inc.
// Copyright (c) 2024-2025 Hemi Labs, Inc.
// Use of this source code is governed by the MIT License,
// which can be found in the LICENSE file.

Expand Down Expand Up @@ -104,7 +104,7 @@ func Parse(c CfgMap) error {
value.Set(reflect.AppendSlice(value, reflect.ValueOf(strings.Split(envValue, ","))))

default:
return fmt.Errorf("unsuported type for %v: %v",
return fmt.Errorf("unsupported type for %v: %v",
k, reflect.TypeOf(v.Value).Elem().Kind())
}
}
Expand Down
4 changes: 2 additions & 2 deletions database/bfgd/scripts/0004.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- Copyright (c) 2024 Hemi Labs, Inc.
-- Copyright (c) 2024-2025 Hemi Labs, Inc.
-- Use of this source code is governed by the MIT License,
-- which can be found in the LICENSE file.

Expand All @@ -17,7 +17,7 @@ CREATE FUNCTION notify_event() RETURNS TRIGGER AS $$
data_old = row_to_json(OLD);
data_new = row_to_json(NEW);

-- Contruct the notification as a JSON string.
-- Construct the notification as a JSON string.
notification = json_build_object(
'table', TG_TABLE_NAME,
'action', TG_OP,
Expand Down
2 changes: 1 addition & 1 deletion hemi/hemi.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func NewHeaderFromBytes(b []byte) (*Header, error) {
copy(h.StateRoot[:], b[29:61])
copy(h.EPHash[:], b[61:73])
default:
return nil, fmt.Errorf("unsuported version: %v", h.Version)
return nil, fmt.Errorf("unsupported version: %v", h.Version)
}
return h, nil
}
Expand Down
2 changes: 1 addition & 1 deletion service/bss/bss.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func NewServer(cfg *Config) (*Server, error) {
cmdsProcessed: prometheus.NewCounter(prometheus.CounterOpts{
Subsystem: promSubsystem,
Name: "rpc_calls_total",
Help: "The total number of succesful RPC commands",
Help: "The total number of successful RPC commands",
}),
requestTimeout: defaultRequestTimeout,
bfgCallTimeout: 20 * time.Second,
Expand Down
4 changes: 2 additions & 2 deletions service/tbc/tbcfork_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2024 Hemi Labs, Inc.
// Copyright (c) 2024-2025 Hemi Labs, Inc.
// Use of this source code is governed by the MIT License,
// which can be found in the LICENSE file.

Expand Down Expand Up @@ -370,7 +370,7 @@ func (b *btcNode) handleGetData(m *wire.MsgGetData) (*wire.MsgBlock, error) {

v := m.InvList[0]
if v.Type != wire.InvTypeBlock {
return nil, fmt.Errorf("unsuported data type: %v", v.Type)
return nil, fmt.Errorf("unsupported data type: %v", v.Type)
}

blk, ok := b.chain[v.Hash.String()]
Expand Down