Skip to content

Commit

Permalink
fix typos and add new line to file
Browse files Browse the repository at this point in the history
  • Loading branch information
ukane-philemon authored and chappjc committed Dec 6, 2022
1 parent 3c44c1b commit 36ec508
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ the dcrdata workload.
Read [postgresql-tuning.conf](./db/dcrpg/postgresql-tuning.conf) carefully for
details on how to make the necessary changes to your system. A helpful online
tool for determining good settings for your system is called
[PGTune](https://pgtune.leopard.in.ua/). Note that when using this tool to
[PGTune](https://pgtune.leopard.in.ua/). Note that when using this tool,
subtract 1.5-2GB from your system RAM so dcrdata itself will have plenty of
memory. **DO NOT** simply use this file in place of your existing
postgresql.conf. **DO NOT** simply copy and paste these settings into the
Expand Down
10 changes: 5 additions & 5 deletions api/types/apicache.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2018-2021, The Decred developers
// Copyright (c) 2018-2022, The Decred developers
// Copyright (c) 2017, Jonathan Chappelow
// See LICENSE for details.

Expand Down Expand Up @@ -602,7 +602,7 @@ func (pq *BlockPriorityQueue) Pop() interface{} {
// ResetHeap creates a fresh queue given the input []*CachedBlock. For every
// CachedBlock in the queue, ResetHeap resets the access count and time, and
// heap index. The min/max heights are reset, the heap is heapifies. NOTE: the
// input slice is modifed, but not reordered. A fresh slice is created for PQ
// input slice is modified, but not reordered. A fresh slice is created for PQ
// internal use.
func (pq *BlockPriorityQueue) ResetHeap(bh []*CachedBlock) {
pq.mtx.Lock()
Expand Down Expand Up @@ -662,7 +662,7 @@ func (pq *BlockPriorityQueue) Insert(summary *BlockDataBasic, stakeInfo *StakeIn

// If new block not lower priority than next to pop, replace that in the
// queue and fix up the heap. Usually you don't replace if equal, but
// new one is necessariy more recently accessed, so we replace.
// new one is necessarily more recently accessed, so we replace.
if pq.lessFn(pq.bh[0], cachedBlock) {
removedBlockHashStr := pq.bh[0].hash
removedBlockHash, _ := chainhash.NewHashFromStr(removedBlockHashStr)
Expand Down Expand Up @@ -833,8 +833,8 @@ func (pq *BlockPriorityQueue) RemoveIndex(idx int) {
pq.RescanMinMaxForRemove(removedHeight)
}

// RescanMinMax rescans the enitire heap to get the current min/max heights.
// This function is NOT thread-safe.
// RescanMinMax rescans the entire heap to get the current min/max heights. This
// function is NOT thread-safe.
func (pq *BlockPriorityQueue) RescanMinMax() {
for i := range pq.bh {
pq.updateMinMax(pq.bh[i].height)
Expand Down
2 changes: 1 addition & 1 deletion dev/dcrdata-harness.tmux
Original file line number Diff line number Diff line change
Expand Up @@ -321,4 +321,4 @@ echo Attach to simnet nodes/wallets with \"tmux a -t $TMUX_SESSION\".


# TODO: the harness currently creates coinbases, tickets, votes and regular
# transactions. It'll need to generate revocations and swap transactions as well.
# transactions. It'll need to generate revocations and swap transactions as well.
6 changes: 3 additions & 3 deletions docs/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ examples of valid PR/Issues naming formats:
- net/url: Parsing 192.168.12.12:8080 returns an error (Issue)
- views/home: data-type of size column needs to be "size" (PR)
- db/dcrpg: Charts data updates could use incremental changes. (Issue)
- doc/contributing.md: Updating the users contribution guidilines. (PR)
- doc/contributing.md: Updating the users contribution guidelines. (PR)

### When to Search the Issue Tracker

Expand Down Expand Up @@ -128,7 +128,7 @@ In the text editor, change the command from `pick` to `fixup` or `squash` for **
commit message for everything, change the command from `pick` to `reword` on the top commit.
It should look something like this before saving.

![alt text](https://i.imgur.com/fOtaYtb.png "Rebase commmit command guide")
![alt text](https://i.imgur.com/fOtaYtb.png "Rebase commit command guide")

7. **If you have conflicts**, resolve them by iterating through the diffs one conflicting commit at a time.

Expand Down Expand Up @@ -182,7 +182,7 @@ For example, if you have made 3 commits since your last push, then run the follo
git rebase -i HEAD~3
```

The number after the tilda (~) is the number of commits that you want to combine, including the one you did at the beginning of this step. Try not to squash post-review commits with pre-review commits. Leaving them separate makes navigating the changes easier.
The number after the tilde (~) is the number of commits that you want to combine, including the one you did at the beginning of this step. Try not to squash post-review commits with pre-review commits. Leaving them separate makes navigating the changes easier.

###### b)

Expand Down
4 changes: 2 additions & 2 deletions exchanges/rateserver/log.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2019 The Decred developers
// Copyright (c) 2022 The Decred developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.

Expand Down Expand Up @@ -30,7 +30,7 @@ func (logWriter) Write(p []byte) (n int, err error) {
return logRotator.Write(p)
}

// initializeLogging initializes the logging rotater to write logs to logFile
// initializeLogging initializes the logging rotator to write logs to logFile
// and create roll files in the same directory. It must be called before the
// package-global log rotater variables are used.
func initializeLogging(logFile, logLevel string) {
Expand Down

0 comments on commit 36ec508

Please sign in to comment.