Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Commit

Permalink
Merge pull request #45 from nandlabs/fix/remove-print-statement
Browse files Browse the repository at this point in the history
Removed fmt.Println
  • Loading branch information
nandagopalan authored Dec 27, 2022
2 parents 0d4dd90 + 0e7d314 commit 53bf1ef
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion codec/codec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ func TestNewXmlCodec(t *testing.T) {
if err := c.Write(m, buf); err != nil {
t.Errorf("error in write: %d", err)
}
// fmt.Println(buf)
const want = `<XMLMessage><name>Test</name><body>Hello</body><time>123124124</time></XMLMessage>`
if got := buf; got.String() != want {
t.Errorf("got %q, want %q", got.String(), want)
Expand Down
3 changes: 0 additions & 3 deletions fnutils/fn.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package fnutils

import (
"fmt"
"time"
)

Expand All @@ -17,11 +16,9 @@ func ExecuteAfterMin(fn func(), timeout int) {
}

func ExecuteAfter(fn func(), timeout time.Duration) {
fmt.Println("Setting Timeout", timeout)
select {
case <-time.After(timeout):
{
fmt.Println("Executing after timeout")
fn()
}
}
Expand Down

0 comments on commit 53bf1ef

Please sign in to comment.