FIXME: should have a mutex to prevent producing same index for two issues that are created closely enough.
()
| 642 | // FIXME: should have a mutex to prevent producing same index for two issues that are created |
| 643 | // closely enough. |
| 644 | func (r *Repository) NextIssueIndex() int64 { |
| 645 | return int64(r.NumIssues+r.NumPulls) + 1 |
| 646 | } |
| 647 | |
| 648 | func (r *Repository) LocalCopyPath() string { |
| 649 | return filepath.Join(conf.Server.AppDataPath, "tmp", "local-r", com.ToStr(r.ID)) |
no outgoing calls
no test coverage detected