diff options
| author | admin | 2024-09-23 15:33:44 +0200 |
|---|---|---|
| committer | admin | 2024-09-23 15:33:44 +0200 |
| commit | 0b8d19eeae79030458b3e1492dd6b0c5a5bf2d75 (patch) | |
| tree | baa63f7d8c862c696affe5913553493c1f3e61c1 /struct.go | |
| parent | b190512e951efdd1ed4642eed8726bf7bdf2c022 (diff) | |
| download | hncrawler-0b8d19eeae79030458b3e1492dd6b0c5a5bf2d75.tar.gz | |
saves last seen max_story_id and stops walk down there
Diffstat (limited to 'struct.go')
| -rw-r--r-- | struct.go | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -1,5 +1,9 @@ package main +import ( + "sync" +) + type Story struct { Id int //Deleted bool @@ -24,3 +28,8 @@ type Link struct { type URL struct { } + +type syncMaxItem struct { + max_item int + mu sync.Mutex +} |
